Re: [android-developers] Transfering image file between two 2 emulators

2012-07-07 Thread Albert Rosa
Rolplkttl
L
sent from my mobile thoughts.
On Jul 7, 2012 12:30 AM, Akki akshay.iitr@gmail.com 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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

[android-developers] Transfering image file between two 2 emulators

2012-07-06 Thread Akki


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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] Transfering image file between two 2 emulators

2012-07-06 Thread ashok chakravarthy
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 akshay.iitr@gmail.com 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 android-developers@googlegroups.com
 To unsubscribe from this group, send email to
 android-developers+unsubscr...@googlegroups.com
 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 android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en