• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Apps BitmapFactory returns null

I'm having problems recreating a bitmap image from a byte array saved in sqllite. any method I use with BitmapFactory.decode always returns null. Log shows that skia failed to decode image or something like that.
Code:
public Bitmap convertToImage(byte[] bytes) {

    ByteArrayInputStream imageStream = new ByteArrayInputStream(bytes);
    return BitmapFactory.decodeStream(imageStream);
}
 
Back
Top Bottom