Image:Couldn't find resource
1 posts in topic
Flat View  Flat View

Posted By:   passion_phenom
Posted On:   Monday, October 13, 2003 08:44 PM

i would like to display an image in a midlet. however, when i try to create an image, an error message :couldn't find resource" is issued. i've checked the location of my image but it still displays the message.can anyone tell me what might be its cause?thanks in advance.:)

Re: Image:Couldn't find resource

Posted By:   Vasily_Isaenko  
Posted On:   Thursday, November 6, 2003 06:43 AM

hi, try the following:

dir structure: /images

in com/blah/ImageViewer.java:

DIR_IMG = Image.createImage("/images/dir.png");

assuming dir.png is located under /images dir.

the same is with getResourceAsStream method. also you
may want read the spec section about how midp would look
for resources.

vni -
About | Sitemap | Contact