Java Utililty Methods BufferedImage to InputStream

List of utility methods to do BufferedImage to InputStream

Description

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

Method

InputStreamasInputStream(BufferedImage bi)
as Input Stream
ByteArrayOutputStream baos = new ByteArrayOutputStream();
ImageIO.write(bi, "png", baos);
return new ByteArrayInputStream(baos.toByteArray());