Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8129495
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T08:19:53+00:00 2026-06-06T08:19:53+00:00

I am trying to make a server-client model in which the server can see

  • 0

I am trying to make a server-client model in which the server can see what the client is doing on their systems. I want to capture and send an image via a socket (skt). How can I display the image received by the server.

Client Thread:

screenShot = new Robot().createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));
                    ImageIO.write(screenShot, "PNG", skt.getOutputStream());

Server Thread:

                BufferedImage image = ImageIO.read(connarray.get(0).getInputStream());
                Graphics g = image.getGraphics();
                g.drawImage(image, 500, 500, null);
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T08:19:56+00:00Added an answer on June 6, 2026 at 8:19 am

    You don’t ask an actual question here, but I could make a couple of observations.

    1. Both your client and server code is catching and squashing exceptions. If any exceptions were thrown by the client or server-side, your code is throwing away all of the evidence. Change

          } catch(Exception ew) { }
      

      to

          } catch(Exception ew) { ew.printStackTrace(); }
      

      If there are exceptions being thrown, this will tell you what they are. (In production code, you should probably log exceptions instead of calling printStackTrace(...) … but that is a lesson for later.)

    2. Taking a screenshot every 1/10th of a second is going to generate a lot of load on the client and server side.

    3. There are existing (non-Java) tools for doing this kind of thing.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to make a server which can send data to more than
I am trying to make a client/server turn based game. I want this to
I'm trying to make a multithreaded server/client app with java ! this code is
I am trying to make a server client app for iphone and I am
I am trying to make a simple Client-Server application but when I execute the
I am trying to make a simple server/client program pair. On LAN they work
I'm trying to make a client/server Java App. Both client and server will be
I'm trying to make a little client-server script like many others that I've done
I am trying to create a client server application. I am going to make
I'm trying to make a basic client-server application for windows phone 7 (using Mango

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.