How to identify contents of a byte[] is a JPEG?

From wikipedia:

JPEG image files begin with FF D8 and end with FF D9.

http://en.wikipedia.org/wiki/Magic_number_(programming)

Leave a Comment