J2ME实现手机图片上传的小经验
http://www.yustu.com/?viewnews-55067.html
J2ME可选包FileConnection开发入门
http://www.yesky.com/319/1935819.shtml
建议先使用如下方法获取根目录列表
public String[] DeviceGetRoots() {
Enumeration enumRoot = FileSystemRegistry.listRoots(); // 返回根目录组成的序列
Vector list = new Vector();
while (enumRoot.hasMoreElements()) {
list.addElement(enumRoot.nextElement());
}
String[] ret = null ;
if (list.size() > 0 ) {
ret = new String[list.size()];
for ( int i = 0 ; i < list.size(); i ++ ) {
ret[i] = (String) list.elementAt(i);
}
}
return ret;
}