Wednesday, September 17, 2014

Converting Byte Array to Bitmap in Android

public Bitmap ByteArrayToBitmap(byte[] byteArray)
    {
        ByteArrayInputStream arrayInputStream = new ByteArrayInputStream(byteArray);
        Bitmap bitmap = BitmapFactory.decodeStream(arrayInputStream);
        return bitmap;
    }

Converting Byte Array to Bitmap in Android Rating: 4.5 Diposkan Oleh: Unknown

0 comments:

Post a Comment