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);

written by objects \\ tags: ,

Array ( ) 2 Responses to “How do I write a BufferedImage to an output stream?”

  1. Hemang Rami Says:

    Thank You for posting this it help me a lot for my project..

  2. M.Faith Says:

    Thanks. Simple and helpful!

Leave a Reply

You must be logged in to post a comment.