I have a byte[]
that I got through the wire and want to verify that it's a JPEG. How can this be done?
Essentially, without having to write out a file, I'd like to do, more-or-less, what the file
command does:
$ file aoeu.jpeg
aoeu.jpeg: JPEG image data, JFIF standard 1.02