Results 1 to 9 of 9
  1. #1
    Join Date
    Apr 2011
    Posts
    3
    Rep Power
    0

    Default Remote Desktop sharing (java)

    Hi ,

    I am working on an remote desktop application(java),by using awt.Robot & some additional libs & I am successfull in creating the application.It's working fine on LAN & WAN,but when I am testing it through the Internet ,it's consuming nearly 2 mins to transfer a single screen shot from client to server...

    How could I increase the transfer rate? I am planning to use java.util.zip for compressing screenshots at client and decompressing it at Server,so that the transfer rate will be faster,but not sure it works..Pls help me regarding this..

    Thank you...

  2. #2
    ra4king's Avatar
    ra4king is offline Senior Member
    Join Date
    Apr 2011
    Location
    Atlanta, Georgia, US
    Posts
    396
    Rep Power
    4

    Default

    I haven't used java.util.zip much but if you are going to send 1 file, it is best to use GZipOutputStream. When you create an object, you get the image as an array of bytes and send it in the stream.

    Java Code:
    gzipout.write(bytes);
    gzipout.finish();
    gzipout.flush();

  3. #3
    Join Date
    Apr 2011
    Posts
    3
    Rep Power
    0

    Default

    How can I devise a scheme In java to transfer only the parts of the screen that have actually changed. This will make it speedier in the end and will not waste bandwith for unchanged screens.

  4. #4
    ra4king's Avatar
    ra4king is offline Senior Member
    Join Date
    Apr 2011
    Location
    Atlanta, Georgia, US
    Posts
    396
    Rep Power
    4

    Default

    Hmmm, maybe compare the previous image with the current image and send only the updated sections? This could get complicated though since you would have to go in the actual data, comparing raw pixel values and sending a rectangle's worth of pixels.

  5. #5
    Join Date
    Apr 2011
    Posts
    3
    Rep Power
    0

    Default

    That sounds hard,Ny how I am gonna try it..

  6. #6
    ra4king's Avatar
    ra4king is offline Senior Member
    Join Date
    Apr 2011
    Location
    Atlanta, Georgia, US
    Posts
    396
    Rep Power
    4

    Default

    Good luck!

  7. #7
    yoh
    yoh is offline Member
    Join Date
    Apr 2011
    Posts
    3
    Rep Power
    0

    Default

    hai there..
    wow.. i din think i could find the same problem and the same thing im trying to do.. can i ask a few question here??
    im also doing the remote desktop sharing.. but the thing is.. i couldnt connect through internet at all.. and the sending of the screenshot even at a LAN.. it requires around 6-10s delay.. could u probably help me in the connecting to the internet stuff?? would appreciate it alot..

  8. #8
    ra4king's Avatar
    ra4king is offline Senior Member
    Join Date
    Apr 2011
    Location
    Atlanta, Georgia, US
    Posts
    396
    Rep Power
    4

    Default

    What problems are you having?

  9. #9
    yoh
    yoh is offline Member
    Join Date
    Apr 2011
    Posts
    3
    Rep Power
    0

    Default

    connecting through the internet.. i could only connect the pc through LAN..

Similar Threads

  1. Desktop sharing server in java
    By sijitg in forum Advanced Java
    Replies: 3
    Last Post: 09-06-2010, 01:27 PM
  2. Replies: 2
    Last Post: 08-10-2010, 05:15 PM
  3. Remote Desktop Application
    By Drango in forum CLDC and MIDP
    Replies: 2
    Last Post: 05-17-2010, 11:22 PM
  4. Open an RDP file with Remote Desktop Connection
    By MisterAndy in forum New To Java
    Replies: 0
    Last Post: 12-04-2009, 08:24 PM
  5. How to read a .EML file present on Remote Desktop?
    By anil@prokarma in forum New To Java
    Replies: 0
    Last Post: 06-12-2008, 02:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •