I'm not sure how JMimeMagic works, but if it's image formats you need to deal with, have a look at the ImageInfo class. It identifies a number of image formats based on the contents, not on the name or MIME type.
Joined: Dec 05, 2007
thanks for reply.
Well, it's most image and text. With images the JMimemagic is great, the problem is with txt, some times it fails.