0

I have this :

byte[] image;

How to get the format of the image format?

Farah
  • 2,469
  • 5
  • 31
  • 52
  • You've you seen: http://stackoverflow.com/questions/10040330/how-to-extract-file-extension-from-byte-array – Paolo Forgia May 27 '14 at 08:48
  • have a look at http://stackoverflow.com/questions/4583463/identifying-file-type-in-java – Scary Wombat May 27 '14 at 08:48
  • Here is nice example for your scenario with java. http://www.copperykeenclaws.com/how-to-find-a-files-image-type-by-looking-at-its-bytes-in-java/ – Selvaraj May 27 '14 at 08:51
  • I see that Mime type method is related to the HTTP server. For me this is in desktop. – Farah May 27 '14 at 08:52

0 Answers0