// BufferedImage to File
import javax.imageio.ImageIO;
import java.awt.image.BufferedImage;
import java.io.File;
...
ImageIO.write( aBufferedImage, "jpeg" /* "png" "jpeg" ... format desired */,
               new File ( "snap.jpg" ) /* target */ );