I have a query. I have an application which gives me font file as byte array. I want to convert that byte array data to a string value. I used the ByteArray.toString(). To confirm that a valid string value has been computed, I converted the string to byte array once again. But, the new byte array differs from the original one. How can I go about this..?
To rephrase my question, I want to convert a byte array containing ttf font file data to a string. How?
There is method readUTFBytes(); in bytearray class you can use this for reading bytearray as string if you want to convert string to bytearray u can use method called writeUTFbytes();