How about this:
java.io.FileOutputStream fos = new java.io.FileOutputStream(targetPath);
//Create the pic..
Image img =...
Type: Posts; User: Norm
How about this:
java.io.FileOutputStream fos = new java.io.FileOutputStream(targetPath);
//Create the pic..
Image img =...
Have you looked at the ImageIO class?
It will write images to files.
javax.imageio.ImageIO.write((BufferedImage)theImg, "PNG", imgFile);