android项目访问E盘上的图片
BufferedInputStream in=newBufferedInputStream(new
FileInputStream("E:/graduate/images/icon.jpg"));
ByteArrayOutputStream out=new ByteArrayOutputStream(1024);
Log.i("wwwwwwwwww", "Avaiable bytes "+in.available());
byte[] temp=new byte[1024];
int size=0;
while((size=in.read(temp))!=-1)
out.write(temp, 0, size);
in.close();
byte[] content=out.toByteArray();
return content;
总是出错:
java.io.FileNotFoundException: /E:/graduate/images/icon.jpg: open failed: ENOENT (No such file or directory)
求大神帮忙,这是为什么? --------------------编程问答-------------------- 用手机只能访问手机上的资源,咋能访问你电脑上的文件呢。。 --------------------编程问答--------------------
+1
--------------------编程问答-------------------- E盘是你的开发板外接设备吗?
补充:移动开发 , Android