I am trying to write a byte array that I know the size of to the array however I am not able to parse the resultant data.
I am using the following code:
okAppender.writeBytes(b -> b.write(byteData));
and
byte[] byteData = new byte[500];
okTailer.readBytes(b -> b.read(byteData));
I expect there is padding but I do not know how much. Any insight would be appreciated.