03-04 15:35:56.032: W/System.err(318): java.io.FileNotFoundException: http://192.168.1.63:8080/mp3Web/Adele-Set Fire To The Rain.mp3
文件路径没错呀 在ie中输入http://192.168.1.63:8080/mp3Web/Adele-Set Fire To The Rain.mp3都能下载完成
怎么回事呀
调试啦半天啦 最开始出现的错误在 public InputStream getInputStream(String urlStr) throws Exception{
URL url = new URL(urlStr);
HttpURLConnection urlConn = (HttpURLConnection) url.openConnection();
InputStream inputStream = urlConn.getInputStream();
return inputStream;
}
早service中 调用getInputStream(“http://192.168.1.63:8080/mp3Web/Adele-Set Fire To The Rain.mp3”)
返回的结果是null
郁闷呀
求大师指教呀 急[img=http://][/img][img=http://][/img]
------解决方案--------------------
楼主,我已经找到原因了,你是用的tomcat的服务器吗?如果是的我的方法兴许可以借鉴一下。