[android-developers] Re: Byte array from bitmap
ByteArrayOutputStream bos = new ByteArrayOutputStream(); bitmap.compress(CompressFormat.PNG, 0 /*ignored for PNG*/, bos); byte[] bitmapdata = bos.toByteArray(); On Jul 21, 4:54 am, Sharmila sharmcg...@gmail.com wrote: Is it possible to create a byte array from bitmap?How can I do so? Thanks, Sharmila --~--~-~--~~~---~--~~ 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] Re: Byte array from bitmap
Just read the reference on developer.android.com. I'll give you a hint :-) Bitmap.getPixels( ... ) On Jul 20, 9:54 pm, Sharmila sharmcg...@gmail.com wrote: Is it possible to create a byte array from bitmap?How can I do so? Thanks, Sharmila --~--~-~--~~~---~--~~ 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 -~--~~~~--~~--~--~---