WebOCR/src/main/java/org/webocr/util/ImageUtil.java
/**
     * Writes an image to a temporary file to obtain a file handle.
     * 
     * @param img Image to be saved.
     * @return
     * @throws IOException
     */
Writes an image to a temporary file to obtain a file handle.

@param img Image to be saved.
Writes an image to a temporary file to obtain a file handle . @param img Image to be saved .
public static File writeToTempFile(BufferedImage img) throws IOException {
	File file = new File(TEMP_FILE_PATH);
	ImageIO.write(img, FORMAT_NAME, file);
	return file;
    }
public static File writeToTempFile ( BufferedImage img ) throws IOException { File file = new File ( TEMP_FILE_PATH ) ; ImageIO . write ( img , FORMAT_NAME , file ) ; return file ; }
Writes an image to a temporary file to obtain a file handle.
Writes an image to a temporary file to obtain a file handle .