Dec
03
|
The ImageIO class provides utility classes for both read and writing images. To write your image to an output stream you would can use the write method telling it what format you want to write the image in, eg. JPEG, PNG.
ImageIO.write(image, "PNG", out);
Array ( ) 2 Responses to “How do I write a BufferedImage to an output stream?”
Leave a Reply
You must be logged in to post a comment.
February 9th, 2011 at 2:06 am
Thank You for posting this it help me a lot for my project..
June 13th, 2012 at 4:43 pm
Thanks. Simple and helpful!