JPEGImageEncoder « Icon Image « Java Swing Q&A





1. JPEGImageEncoder problem    coderanch.com

I am seeing the following problem using JPEGImageEncoder to create a .jpg file: If I try to view the created .jpg file with MS Photo Editor, I see a 'Error Reading File' error box pop up. The image is viewable if I use a Java program to view it. Does anyone know what is going on here? Thanks in advance...

3. JPEGImageEncoder OutOfMemoryError    coderanch.com

Hi there I am busy writing some code that will compress images. On the screen, the user can see their original image on the left hand side, and the result of the compression operation on the right hand side. Now in my code, I get an OutOfMemoryError at the same line of code every time at encode.encode(...) public static void compressFile(File ...