I transferred jpg image to binary and transferred them back to jpg before. It is ok. Because it was from jpg to jpg.
Now I would need to read image as binary string from wsdl (I don't have them yet), and I don't know the binary string was for what image format, or does it matter? Is there anyway I can tell from the binary string itself to detect it is a jpg, gif, or png?
Somehow I have to know these binary string are for what image format, jpg, gif or png if I try to display it, or save it as a image file, right?
Any people has some sample codes to recommend?
Thanks!