Please help.

On Dec 21, 1:52 pm, ZeeZo <zainu...@gmail.com> wrote:
> Hi Guys,
> Thanks for your reply.I am having a very strange problem .If i send
> byte[] ,that i get from onPreviewFrame method, through TCP to  my
> PC.It gives me a valid JPG file but its whole black :(.But intersting
> is that if i write that byte[] 1st on sd card  and save that as JPG
> and and then read that JPG file back into byte[] and then send that
> through TCP to my PC,everything work just perfect.I gets a valid
> image .Its really weired and i got no clue what could be the
> reason.Thing is that i dont want to write that data 1st on my SD
> card.I want to send that data directly to my PC.
>
> But Eric from above scenario at least we can assure oursleves that its
> a vig-endian or small-endian issue.
>
> Please help guys.
>
> Best regards.
>
> On Dec 19, 5:35 am, Eric Kraft <ekraf...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Just a quick suggestion for you due to limited information about your 
> > situation: check the byte ordering of your TCP request. One machine might 
> > send data big-endian and the other might receive it little-endian. The fact 
> > saving the byte stream to a file works makes me think this is the issue you 
> > are having.

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