I have the jai-imageio jar and have added it to my class path. I just don't know to write a .tif image to the response's output stream. Can someone help me?
Here is my code:
RenderedOp image = JAI.create("fileload", filepath);
ImageIO.write(image.getAsBufferdImage(), "tif", response.getOutputStream());
I know that javax.imageio.ImageIO doesn't support tif images, so what do I do with jai-imageio to make it worK? I'm lost.
Note: the code above works fine for other image types like jpeg and png.