Transcoding large image files
I have followed the example listed here: http://java.sun.com/products/java-media/jai/forDevelopers/jai1_0_1guide-...
In my case, however, I am trying to turn a 4gb bmp into a jpg. I get java out of heap space errors on the line encoder.encode(img) in the function encodeImage. I don't understand why, as nothing is being buffered.
Any pointers greatly appreciated.