Decoding images files with JAI
I'm new on JAI.
I have a set of pictures that I want to display. The files are from different types (bmp, gi, tiff, jpg) and the type is unknown at each time since these file are encoded.
1- How can get the type of the file when accessing its properties, so that I can use the right decoder (ImageDecoder) to read it?
2- How to display them : Which class is better if I want to serialize the file on a distributed system? ImageRenderer or what else?
2- Is there any java API better and easy to use than JAI?
Thanks in advance