Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

ImageIO, BufferedImage and PNG

807580Sep 17 2010 — edited Sep 24 2010
Hello,

I have a BufferedImage object, and I would like to copied it to the clipboard as a PNG image. What I have now is a code that copy the BufferedImage to the clipboard.

What's the best way to convert the BufferedImage to PNG? There is ImageIO.write() but I would prefer to not create a file on the disk for this task.

Is it possible to create file in memory? or is it possible to convert the image in memory?

Thanks in advance for your help.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 22 2010
Added on Sep 17 2010
7 comments
344 views