open the fileInputStream on the file that is stored in the sdcard.

http://stackoverflow.com/questions/5298131/android-using-fileinputstream-for-reading-file-from-sdc-reporting-null-pointer

and write the bytes of the file in to the Output stream of the Socket. You
collect the bytes on the other emulator and store in a file.


On Sat, Jul 7, 2012 at 9:59 AM, Akki <[email protected]> wrote:

> I was trying to send an image file between 2 emulators using a TCP socket
> connection.The socket connection has been successfully made and the image
> file is stored on the SD-card of one of the emulators. I want to ask how
> can I convert the image file into byte stream and how on the other side can
> I convert back the bytestream to image format?? I tried to search a lot but
> couldn't find the right function in the API.
>
> Any other ideas for the same are welcomed
>
> --
> You received this message because you are subscribed to the Google
> Groups "Android Developers" group.
> To post to this group, send email to [email protected]
> To unsubscribe from this group, send email to
> [email protected]
> For more options, visit this group at
> http://groups.google.com/group/android-developers?hl=en

-- 
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Reply via email to