Hi,

I happened to have written something similar just recently.  How about
just opening the file with FileInputStream and use read() to read out
the byte[]?  On the receiver end, you just write() with
FileOutputStream.  Or did you just want to send the pixel data from
memory to memory?

I hope this helps.

On 6月29日, 午後5:55, Gorka <[email protected]> wrote:
> I am sorry that I forgot to say that the photos are in JPEG format
>
> On 29 jun, 09:26, Gorka <[email protected]> wrote:
>
> > Hello,
>
> > I am trying to send a photo from my Android device to a laptop via
> > Bluetooth. Right now I have a gallery on the screen where the photos
> > are depicted. What I want to do is to click a photo and directly send
> > it to the laptop. All the Bluetooth stuff works fine but what I don´t
> > know how to do is to get the byte[] that conforms the picture that
> > should be sent. Maybe that is not the way is supposed to be done, so
> > please it would help if someone gives me some suggestions about how to
> > proceed. I just need some guidelines, later I will investigate how to
> > code everything. Once the Bluetooth messages reach the laptop is there
> > something to do to "rebuild" the picture??
>
> > And secondly, by now I am copying the files to the drawable file of my
> > project. Is it possible to directly get them from the folder where the
> > picturea I take are stored??
>
> > Thank you very much for your help. Gorka
>
>

-- 
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