Problems in calling image on J2ME mobile phone screen
I have an image size (160kb) of certain size and width. I am calling this image onto a mobile phone screen (j2me) and upon calling this image, I am getting OutOfMemoryException. Sometimes, I do get the partial image displayed on the phone screen.
My requirement is either reduce the size of the image or avoid the OutOfMemoryException. Does anyone has gone through the similar situation. Any ideas on how to solve this problem is greatly appreciated.
Thanks,
coolers.
[492 byte] By [
coolersa] at [2007-10-2 5:12:46]

160kb is huge. The largest image I've ever displayed on a mobile was only 5kb and that covered the whole screen. (192x220)....so I'm not really surprised.
What is the format of the image? if its PNG (which is probably should be), try reducing the color depth to 256 colours if you can. This will greatly reduce the file size. Software like Photoshop can reduce the colour palette greatly without any discerable loss of quality.
Basically there should not be a situation where where you have to display something as big as that.