After fetching the image in the database and saving to the array variable, you can convert to Bitmap in this way:
Bitmap bitmapImage = BitmapFactory.decodeByteArray(array, 0, array.length);
If the method fails to convert, it returns null.