// Deal with big image that size more 8M
BitmapFactory.Options option = new BitmapFactory.Options();
option.inTempStorage = new byte[1024*1024*5];
Bitmap bm = BitmapFactory.decodeFile(inputStream,cwj);
// We can also compute sample
BitmapFactory.Options option = new BitmapFactory.Options();
option.inTempStorage = new byte[1024*1024*5];
Bitmap bm = BitmapFactory.decodeFile(inputStream,cwj);
// We can also compute sample