I have a byte stream that may be UTF-8 data or it may be a binary image. I should be able to make an educated guess about which one it ...
If I call writeUTF(String) on a DataOutput object, is there a way to tell how many bytes were actually written? E.g.:
public int write(DataOutput output) throws IOException { output.writeUTF(this.messageString); ...
Invalid byte 1 of 1-byte UTF-8 sequence my error is the above line.am using am calling java method using Blaze DS.