code: public static ByteArrayInputStream toPNGInputStream(Bitmap bitmap) {
  		ByteArrayOutputStream bytes = new ByteArrayOutputStream();
  		bitmap.compress(Bitmap.CompressFormat.PNG, 100, bytes);
  		return new ByteArrayInputStream(bytes.toByteArray());
  	}
docs: Compress the bitmap to a PNG and return its {@link ByteArrayInputStream}
  
  @param bitmap The {@link Bitmap} to compress
  @return The {@link ByteArrayInputStream}