I'am trying convert Byte Array to Bitmap to show in imageView
in android, I am taking byte data from method but When I run the below function,I am taking null value of Bitmap, how can I take bitmap value from byte[]
array
private CameraProxy.CameraDataCallBack callBack = new CameraProxy.CameraDataCallBack() {
@Override
public void onDataBack(byte[] data, long length) {
// TODO Auto-generated method stub
Log.i(TAG, "length . " + length);
Log.i("data",""+data);
Bitmap bitmap = BitmapFactory.decodeByteArray(data,0,data.length);
im.setImageBitmap(bitmap);
}
};