Hi, i have an image generator class that generates a JPEG image on the fly, i dont want to store this image in a file.I want this class to write this image in to an OutputStream and at the same time my JSPshould read this image from the OutputStream. My image generator class uses the com.sun.image.codec.jpeg API. Please help.
Your best bet is to create a servlet that can stream the file to the browser. I've published a real simple one that streams files from the filesystem. It wouldn't take much effort to rework it to stream the image you've generated on the fly. http://simple.souther.us Look for SimpleStream.