ImageIO, BufferedImage and PNG
807580Sep 17 2010 — edited Sep 24 2010Hello,
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.