Graphic Image Signature Bytes

It turns out we have a number of files on our system that were labeled as sgy but in fact are really graphic files. All you have to do is to check the first few byte positions. Here is how to automatically figure out what these files are: Here is the reference if used for the graphic images, I have verified it works: http://jasperreports.sourceforge.net/api/net/sf/jasperreports/engine/util/JRTypeSniffer.html

Does anyone know a simple way to detect a pdf file, word doc, excel spread sheet?


Site Owner: Eric Keyser