Yep, When using the copyPixelsToBuffer you're copying compressed data (e.g. the JPEG raw data) into the buffer. When using decodeByteArray, it is expecting uncompressed raw data (e.g. ARGB_8888 or RGB_565 and such).
This means that when you send compressed data (from the call copyPixelsToBuffer) into the decodeByteArray call, it won't work. On Sep 28, 6:50 am, jeyaprakash chinaraj <jp9894562...@gmail.com> wrote: > Hi Kostya Vasilyev, > > Its working , i use ByteArrayOutputStream insteadof > java.nio.ByteBuffer , thanks for your concern > > Regards, > Jey > > 2010/9/28 Kostya Vasilyev <kmans...@gmail.com> > > > > > I would suggest debugging this one step at a time: > > > - save and restore the byte array to a file on the memory card > > > Once you have that working > > > - save and restore base64 encoded data to a file > > > Once that works, too: > > > - add http code to save / restore base64 data to / from your server > > > -- > > Kostya Vasilyev --http://kmansoft.wordpress.com > > > 28.09.2010 13:31 пользователь "jeyaprakash chinaraj" < > > jp9894562...@gmail.com> написал: > > > Hi Kostya Vasilyev, > > > Am getting same Byte length in both sides > > > byte[] arr = Base64.decode(Stringdata); > > Bitmap b = BitmapFactory.decodeByteArray(arr, 0, arr.length); > > > no luck the decodebytearray method returns null only > > > On Mon, Sep 27, 2010 at 7:03 PM, Kostya Vasilyev <kmans...@gmail.com> > > wrote: > > >> > As next step, I suggest you log the data you send and receive from the > >> server - check to see if ... > > >> > -- > >> > You received this message because you are subscribed to the Google > > >> > Groups "Android Developers" group. > >> > To post to this group, send email to android-develop...@googl... > > > -- > > You received this message because you are subscribed to the Google > > > Groups "Android Developers" group. > > To post to this group, send email to android-develop...@googlegro... > > > -- > > 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<android-developers%2bunsubs-cr...@googlegroups.com> > > For more options, visit this group at > >http://groups.google.com/group/android-developers?hl=en- Hide quoted text - > > - Show quoted text - -- 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