I am reading an Jpeg file using following snippets
the file i try to read is 6480 and 4320 in dimension and just 2.34 MB in size. my heap size is 1024 MB.and i want to read file even larger in size say 25 - 30 mb and 10,000 * 12,000 in dimensions. then what all experts suggest me to accomplish my goal
thank you for your reply.i am using eclipse latest version. and i do understand your point of BufferedImage uncompressed size calculation. is there any other way to load big jpeg images into my application ? like BigDecimal in java is there any other option for large image file ?
Ulf Dittmer wrote:... who knows what that does to the memory settings.
IDEs are memory hogs; Eclipse probably needs 256MB or more just for itself.
For running the code in Eclipse; dig into the Eclipse settings to find out where you can set the JVM parameters for child processes - giving those 1 GB is unlikely to be the default, so as long as you don't change those values you'll run into trouble.
machines help you to do more, but experience less. Experience this tiny ad: