From BufferedImage to InputStream

J

java

How to create one InputStream based on one BufferedImage object?
I don't same the BufferedImage as a File, then generate InputStream from File.
I just want to finish this in the memory.
Please help, thank you.
 
J

Joe Randstein

javax.imageio.ImageIO should help you. See the read() and write()
methods that offer to read or write Images from streams.
 
Joined
Dec 23, 2007
Messages
1
Reaction score
0
Joe Randstein said:
javax.imageio.ImageIO should help you. See the read() and write()
methods that offer to read or write Images from streams.

Please show me example, because that method not help to "convert" BufferedImage to InputStream.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,230
Members
46,816
Latest member
SapanaCarpetStudio

Latest Threads

Top