mjacqu4 0 Newbie Poster

Hello,

I am trying to create images from files in a Java ME program, but sometimes the Image.createImage("filename") is returning null without throwing an exception. It works fine for some images but not for others. I've even renamed a non-working image to the same path as a working one, and it still doesnt work, so I know that its not an issue with an incorrect path. All my images are relitavly small .png files.

Does anyone know why this might be happening?

Any help would be appreciated.

iImage = Image.createImage("/Images/dice01.png");

Thanks,

Matt

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.