Any time you transfer data (anything more than simple ASCII) over the
net you need to be aware of data conversion issues.  It's a
complicated issue, and depends on which specific protocols you're
using, what computer languages are involved, how you describe the
data, etc.  It's a topic for a book, not a post.

If you were to describe specifically how you're transferring the data
then maybe someone could help you with this specific instance.

On Dec 17, 7:37 am, Zainu <zainu...@gmail.com> wrote:
> Hi Guys,
>
> Need your help again.I am getting byte[] from onPreviewFrame(byte[]
> data, Camera arg1).Now i am transferring each frame through TCP to my
> System and then write a JPG file with that byte[].But when i open this
> JPG file it says that invalid JPG file.Moreover,when i send the same
> byte [] from PictureCallback jpegCallback = new PictureCallback()
> method and then write a JPG file on my PC ,it works fine.
>
> I know its a kind of encoding issue,actually byte[] which i get from
> onPreviewFrame is byte array of compressed image data.
>
> I can only transfer this byte array of compressed image data through
> TCP from my Phone to PC.But i want to decode this data once i get this
> on PC.Can you guys please help me how should i proceed.
>
> I would be very grateful for any kind of help.
>
> Best regards,
> ZAI

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

Reply via email to