View Single Post
Old 07-23-2009, 08:56 PM   #2 (permalink)
BlackBerry Extraordinaire
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts

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
Offline   Reply With Quote