【发布时间】:2012-03-18 00:05:46
【问题描述】:
我无法从服务器机器下载 exe 文件。
I.E.我可以从我的位置机器下载一个 exe 文件并将其保存在磁盘中,但不能从其他服务器下载,但是当我尝试从服务器机器访问它时它没有下载,并给出如下错误:
java.io.FileNotFoundException: http:\10.128.10.60\home\test\filexilla.exe(The filename, directory name, or volume label syntax is incorrect)
下面是我的代码:
fileInputStream = new FileInputStream(new File("E:\\Sunnywellshare\\perl\\filezilla.exe"))
//this code is working fine
fileInputStream = new FileInputStream(new File("http://10.127.10.10/test/filezilla.exe"));
//this code is from remote location.and throwing error
如何解决 FileNotFoundException?
【问题讨论】:
标签: java jakarta-ee