This works for me:
m_image = Bitmap.createBitmapFromBytes(image,0,size,1);
Here is the doc:
public static Bitmap createBitmapFromBytes(byte[] bytes,
int offset,
int length,
int scale)
Looks like you are sending length = -1, you should be sending the size of the image.
Also, the scale should be 1, not 0.
Last edited by Dougsg38p : 07-23-2009 at 08:57 PM.
Reason: Added info
|