Java send image from client to server -


I want to do a short programming coding and I want the client to take the printer screen and then the image that is connected to the server is .

Customer code is not the same.

  Public run zero () {while (true) {rectangle screenRect = new rectangle (Toolkit.getDefaultToolkit). GetScreenSize ()); Buffer image printscrine = robot.createcrescapture (screenrext); //What do I do here?!?!?! Try {Thread.Sleep (2000); } Grip (Interrupted E) E. {// TODO Auto-Generated Catch Block e.printStackTrace (); }}}  

and here is the server code

  run public zeros () {while (true) {// read the image sent from the client // sleep Dirt {Thread Soul (2000); } Grip (Interrupted E) E. {// TODO Auto-Generated Catch Block e.printStackTrace (); }}  

Hope you can help me I have tried Google to get my answer, but there are some things that I really can not understand. I have seen people transforming the image into an array of bytes. Why do you have to do this?

/ P>


Comments

Popular posts from this blog

import - Python ImportError: No module named wmi -

Editing Python Class in Shell and SQLAlchemy -

lua - HowTo create a fuel bar -