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: ,


One Response 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..

Leave a Reply