Buffered Images to Input Streams
posted 10 years ago
Hi - I'm trying to write the contents of a BufferedImage for reading by another class that requires an InputStream. The only way I have been able to figure out how to do this so far is to write the image to a temporary file and then read it into the object stream (note the image is created during run-time so I cannot just read the image file in since it does not exist until I write it out). Is there an easier way to do this where I don't have to actually write the file out?