+2  A: 

Yes, well, 'javax.imageio' throws this exception exactly when the image type is not supported. You can catch the exception. This is your indication it's not supported and you can do whatever you wish from there.

By definition you can't convert this file then -- not with 'javax.imageio' then. But you could find other parsers out there maybe that happen to read the file. They do seem like valid JPEGs.

Sean Owen
ya..exactly i tried to catch that exception and do all the stuff but how to render that kind of file?
Nitz
Just render a prepared file, containing something like "Image type not supported, choose another one".
folone