Image sizes?

I'm trying to display a 90k image under MIDP for Palm with no success. Any ideas how I can?Thx,Jim
[134 byte] By [amrhein] at [2007-9-26 8:20:57]
# 1

[amrhein],

When you mentioned the 90k image, what is the format of that image? The MID Profile v1.0 specification only supports the PNG (Portable Network Graphics) v1.0 image file format for the createImage() method of the Image class.

HTH.

Allen Lai

Developer Technical Support

SUN Microsystems

http://www.sun.com/developers/support/

allenlai at 2007-7-1 18:54:24 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
My file is in the PNG format. My code works if the file is under 40k and under a certain Width and Length.Thx,JSA
amrhein at 2007-7-1 18:54:25 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

[amrhein],

The MIDP API documentation for the Image class states that "for PNG v1.0 .... all positive values of width and height are supported; however, a very large image may not be readable because of memory constraints."

You have probably exceeded the limit of the image file size for the KVM that you are running the MIDlet on.

HTH.

Allen Lai

Developer Technical Support

SUN Microsystems

http://www.sun.com/developers/support/

allenlai at 2007-7-1 18:54:25 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 4
Guess that should have been my first Question. What is the true limit? 40k isn't a large image, in my opinion, but a file like 500k I could agree with is. Is there any way around this limitation? Thx,JSA
amrhein at 2007-7-1 18:54:25 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 5

[amrhein],

I am not sure if there is a hard and fast fixed limit to the image size for a MIDlet, it might depend on the amount of device flash or memory.

I will investigate and post my follow up answers to your question shortly. Stay tuned.

Allen Lai

Developer Technical Support

SUN Microsystems

http://www.sun.com/developers/support/

allenlai at 2007-7-1 18:54:25 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 6
[amrhein],Found an answer at last! The limit for a .png image for the MIDP for PalmOS is 64k and it is imposed by the PalmOS memory management system.HTH.Allen LaiDeveloper Technical SupportSUN Microsystems http://www.sun.com/developers/support/
allenlai at 2007-7-1 18:54:25 > top of Java-index,Java Mobility Forums,Java ME Technologies...