add images in midlet

hello everyone

i have developed a application using sun wireless toolkit and have added some images in my midlet

when i try to run it on my any nokia mopdel it runs well and all images are shown by it

but as i try to on samsung D500 and iMade it is unable to find the images and gives exception

jpg images are suppoted on these phones

code for image is

Image welcome=Image.createImage("/images/my.jpg");

ImageItem item=new ImageItem("",welcome,ImageItem.LAYOUT_VCENTER|ImageItem.LAYOUT_NEWLINE_BEFORE,"Your Mobile deos not suppot images");

cMainForm.append(item);

it throws exception from first line itself where path to image is given

i donot know why it is unable to find find nokia is able to

[765 byte] By [harrriiiia] at [2007-11-26 12:34:55]
# 1
Use for samsung PNG format only.
Nesterkoa at 2007-7-7 15:58:26 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 2
Try also with a different layout combination.Few day ago I had a problem with NEW_LINE_AFTER.For png format. try to load a simple png with few color and no alpha channel.So you can understand if the problem is the png format or other.
PeppeMEa at 2007-7-7 15:58:26 > top of Java-index,Java Mobility Forums,Java ME Technologies...
# 3

PNG images are the only format that is required to be supported by MIDP. Otherwise, you will receive an exception as you have experienced.

Stick to PNG unless you absolutely need JPG, otherwise, you will have to implement a JPG decoder for that specific devices that do not support them natively.

jonathan.lea at 2007-7-7 15:58:26 > top of Java-index,Java Mobility Forums,Java ME Technologies...