java - How to Differentiate ByteArray from Strings -
i'm creating android application receive texts windows application via tcp/ip. works fine trying send images over. images converted bytearray , sent through tcp/ip. on receiving end however, have differentiate bytearray normal string of text if/else statement in order convert bytearray image , display text messages are. have idea on how this?
in many applications encountered images being stored e.g. in xml base64 encoded. or may want introduce header information (in simple case header byte or similar) both string , image, can work if/else on.
Comments
Post a Comment