posted 18 years ago
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(...)
The other thing that concerns me is that the steps taken to reproduce this error are
1 - open image
2 - compress image
3 - rotate image
4 - compress image
And the app will get the OutOfMemoryError on step 4.
I would very much appreciate it if someone could help me out. I have read that a solution is to increase the JVM heap size, but I fear that this will just mean that while it will make the current image work, a larger and larger image will break it anyway.
Many kind regards,
Rachel