This code gives runtime exception and I can't catch it. BitmapFactory.decodeByteArray doesn't return null or something like this.
Bitmap bitmap = BitmapFactory.decodeByteArray(imbBytes, 0, imbBytes.length);
Note: when imbBytes is byte[] of .png gives error, when .JPG no. I tried save png image in directory to check if byte[] was correct and everything worked fine.
Please help!!!