public static Bitmap getBitmap(final byte[] image, int sampleSize) {
        final Options options = new Options();
        options.inDither = false;
        options.inSampleSize = sampleSize;
        return BitmapFactory.decodeByteArray(image, 0, image.length, options);
    }
Get a bitmap from the image

@param image
@param sampleSize
@return bitmap or null if read fails
app/src/main/java/com/github/pockethub/android/util/ImageUtils.java