Skip to main content

Screen Capture and Send

2 replies [Last post]
Joined: 2004-09-03


Does anyone know if using Java it is possible send a users desktop to another users desktop in realtime. For example, both users would run a some software, user A's program would capture their current desktop or a portion of it, then send the desktop image realtime to user B via the lan or internet, user B's program would read the info and display the image, thus allowing user B to watch the desktop of user A.

Any starting pointers would be great, particularly on how to read user A's screen.


Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2006-02-17

You can do a screencapture of the entire desktop using Robot.createScreenCapture() and pass the rectangle representing the screen dimensions. You will get a buffered image out of it. Using ImageIO APIs (javax.imageio), you can write this buffered image to the network through streams and read the image back at the other end using the same ImageIO APIs and render it. I am not quite sure whether this is what you are looking for.


Joined: 2004-05-23

To my knowledge, no such trickery is possible from the standard APIs.

However, there is such a thing as the "Full Screen API" which might contain some pertinent capabilities.

I don't know how to find it, but I know there is a link to it somewhere in the tutorial -- there might be a trail on it. The tutorial's home page is:

If you're having trouble finding it, look in the "Really Big Index" -- there's a link on the right side of the home page.

Good Luck!
- Steev.