Image Problem overflowing Heap Space
Im having this problem I cant quite figure out what is causing it. Im trying to load an image into Image class by something like ImageIO.Read(New File bla bla bla);
the image is 5MB but fairly large size wise (it is about 5 times the size of my screen) I can load the image fine and diplay the image how I wish, The problem lies however in the fact that it will overflow the java heap space if i leave it on default (64 mb or so?) and will give me that error so long as I dont increase the heap space to at least around 500 or 600 mb.. -Xmx550m
It seems ridiculous that a 5mb image would cause five HUNDRED mb of space to fill. I made sure im not creating it in a loop so its only being created once I cant figure out why else it would cause so much memory usage... Can anybody assist me with this??