http://www.jalice.net/IORoseTest.java.html
Iterator writers = ImageIO.getImageWritersByFormatName("jpeg");
ImageWriter writer = (ImageWriter)writers.next();
ImageOutputStream ios = null;
try{  ios = ImageIO.createImageOutputStream(new FileOutputStream("myPicture.jpg"));}
catch(IOException ioe){}writer.setOutput(ios);
try{   writer.write(bufferedImage);}
catch(IOException ioe){}
package javax.imageio available since JDK 1.4