|
>
However, if I read the first element in the ByteArrayOutputStream into a string variable, the leading
zeros are truncated, leaving only 1100.
How are you doing
this part? I envision something like:
byte[] byteArray
= theByteArrayOutputStream.toByteArray();
String
byteAsString = Byte.toString(byteArray[0]);
In this case,
byteAsString would be "12".
Jim
|