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);
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment