Displaying Large Images and Out of Memory Error

hi,

I am relatively new to JAVA and I have been trying to display a large jpeg in a scrollpane. The image is about 30 mb in size and is very long. When compressed the image is very small (1mb) but when uncompressed it increases in size due to the black background. I have been looking all over the place to find a method to display such a large image. I read a little bit about the JAI and its tile features but I am not really familiar with it. Also the image has to be displayed in an applet. the whole mess has to do with the JAVA VM memory restrictions as it does not have enough memory to process the image. Is there a way to uncompress a part of the JPEG and display it or assign addittional memory to JAVA. I will really appreciate any help on this topic.

thanks

[802 byte] By [Dhruv12] at [2007-9-26 3:52:29]
# 1
Hiya.I can't say I know how to save Java from large images, but you can up the memory allocated to the JVM:java -Xmx120M ...will give 120M to the JVM (max). There is an -Xms also which gives the initial allowed space. Regards.Paulj.
pajowett at 2007-6-29 12:39:49 > top of Java-index,Security,Cryptography...