This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Android and the fly likes Reading PNG file from the stream Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Reading PNG file from the stream " Watch "Reading PNG file from the stream " New topic
Author

Reading PNG file from the stream

reddy raja
Greenhorn

Joined: Sep 21, 2009
Posts: 17
Hi all ,

I trying to build RDP application for android mobile.so in server side i am sending the png images with the robot class, but in client side i am not able to read that messages and print them on my android device.

i am using following code to read the JPEG file body data and i am able to show those images



can any one help me how to read the png file out of the inputstream.






 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Reading PNG file from the stream
 
Similar Threads
Out of Memory exception
Not getting the bytes sent
DataInputStream
Reading large files in Java
code for file download