J2me里面怎么读取存储卡上的jpg图片呢,默认的模拟器上怎么不好用啊
默认模拟器的root1/photos下面我放了一张图片,用Image.createImage( "file:///root1/photos/1.jpg ")读取总是返回
IOException, 
 之后改用 
 fcn=FileConnection)Connector.open( "file:///root1/photos/1.jpg "); 
 String   url=fcn.getURL(); 
 HttpConnection   hc=(HttpConnection)Connector.open(url); 
 int   datalength=(int)hc.getLength(); 
 DataInputStream   dis=hc.openDataInputStream(); 
 byte[]   data   =   new   byte[datalength]; 
 dis.readFully(data); 
 if   (datalength   >    0)    
          img   =   Image.createImage(data,   0,   datalength);   
 仍然不对,请问这是为什么?
------解决方案--------------------J2me  目前不支持JPG格式的图片,只支持PNG格式图片,如果你了解文件格式,或许可以自己解析一下