Android Utililty Methods Bitmap to InputStream Convert

List of utility methods to do Bitmap to InputStream Convert

Description

The list of methods to do Bitmap to InputStream Convert are organized into topic(s).

Method

InputStreamconvertToInputStream(Bitmap bitmap)
convert To Input Stream
ByteArrayOutputStream expectedOutputStream = new ByteArrayOutputStream();
bitmap.compress(Bitmap.CompressFormat.PNG, 0 ,
        expectedOutputStream);
byte[] expectedBitmapData = expectedOutputStream.toByteArray();
return new ByteArrayInputStream(expectedBitmapData);