i have 2 applications. One application act as server and it is created in java and sends continuously screen shot of desktop by using the following code.
public void screenCap() throws IOException, AWTException{
Rectangle captureSize = new Rectangle(lastXpos, lastYpos, 500, 500);
img = robot.createScreenCapture(captureSize);
Robot robot=new Robot();
OutputStream os = null;
BufferedImage image = robot.createScreenCapture(new Rectangle(Toolkit.getDefaultToolkit().getScreenSize()));
ImageIO.write(image, "jpg", os);
}
The second application is Android application acts a client application and has to read continuously the above image stream from inputstream.
Could please help me to read the images from inputstream in the client application.