Sending Desktop image
1 posts in topic
Flat View  Flat View

Posted By:   Rakesh_Sharma
Posted On:   Sunday, December 1, 2002 11:28 PM

i m making an application to capture the desktop image
for this purpose i used java.awt.Robot class.i am able to
capture the image in the form of BufferedImage.but problem starts when i try to transfer the image from that comp. to another.im using java.awt.image.PixelGrabber class to store image pixel in form of int array and then pass it using sockets.it is taking around 10 minutes to get to the other comp.

Can anybody tell me a better method to transfer this image????PLZ reply early.


Re: Sending Desktop image

Posted By:   Gautam_Marwaha  
Posted On:   Monday, December 2, 2002 12:51 AM

Don't know if this is any better...

You could write this into a file and then transfer it to another computer - maybe even zip it before you transfer.

class java.imageio.ImageIO (jdk 1.4) has a static method write(RenderedImage im, String formatName, File output) which can write the BufferedImage to a physical file like in a jpg format
About | Sitemap | Contact