[android-developers] Re: Byte array from bitmap

2009-07-21 Thread migo
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,

[android-developers] Re: Byte array from bitmap

2009-07-20 Thread Streets Of Boston
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