Here you can find the source of outPutImage(BufferedImage bufferedimage, String targetPath)
public final static void outPutImage(BufferedImage bufferedimage, String targetPath) throws IOException
//package com.java2s; //License from project: Open Source License import java.awt.image.BufferedImage; import java.io.File; import java.io.IOException; import javax.imageio.ImageIO; public class Main { public final static void outPutImage(BufferedImage bufferedimage, String targetPath) throws IOException { ImageIO.write(bufferedimage, "JPEG", new File(targetPath)); }// w w w . j a v a2 s. c o m }