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]
# 1
160kb, that must be a very large image. How big is this image, can how big is the screen size?
mlka at 2007-7-16 1:15:24 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2

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.

RageMatrix36a at 2007-7-16 1:15:24 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3
Yes. the image is png format. I am using 256 pixels. I am looking for a way to reduce the size of the image. Any other possible ways to do?
coolersa at 2007-7-16 1:15:24 > top of Java-index,Java Mobility Forums,Java ME Technologies...