public static void writeOut(BufferedImage image,OutputStream os,String format) throws IOException {
  ImageIO.write(image,format,os);
}

public static void writeOut ( BufferedImage image , OutputStream os , String format ) throws IOException { ImageIO . write ( image , format , os ) ; }
write out image object to a output stream
