Image transmission

Hi everyone,I'd like to know if there is a way to transmit some Images (like BufferedImage instances) on a network ?my problem is that BufferedImage does NOT implement Serializable...thanx
[217 byte] By [anaisdeva] at [2007-9-27 7:13:46]
# 1
Try to convert it into an int array (pixelGrabber).Noah
noah.wa at 2007-7-8 10:33:08 > top of Java-index,Archived Forums,Java Programming...
# 2
You can save it as a gif or jpeg image for example.Denis
Deudeua at 2007-7-8 10:33:08 > top of Java-index,Archived Forums,Java Programming...
# 3
I don't want to write it on a disk (when saving using jpg or gif formats), just transmit.about the "pixelGrabber", is there a difference with the getRGB method ?thanks for your answers.
anaisdeva at 2007-7-8 10:33:08 > top of Java-index,Archived Forums,Java Programming...
# 4
Ignore all previous posts. Use ImageIcon, as it implements serializable.Problem solved!
wbrackena at 2007-7-8 10:33:08 > top of Java-index,Archived Forums,Java Programming...
# 5
sorry,after verify, I have no choice and I have a BufferedImage (from a get...() method, no details needed)Maybe there is a way to convert it to an ImageIcon ?
anaisdeva at 2007-7-8 10:33:08 > top of Java-index,Archived Forums,Java Programming...
# 6
You can write your image to an OuputStream or an ImageOutputStream with ImageIO class.static boolean write(RenderedImage im, String formatName, ImageOutputStream output) or static boolean write(RenderedImage im, String formatName, OutputStream output) Denis
Deudeua at 2007-7-8 10:33:08 > top of Java-index,Archived Forums,Java Programming...
# 7
yes, that is certainly what I was looking for.I am using jdk 1.3, and after searching on the www, it seems that this package is from the 1.4 only. I got to update my jdk !Thanks a lot.
anaisdeva at 2007-7-8 10:33:08 > top of Java-index,Archived Forums,Java Programming...