I am unable to download an exe file from server machine.
I.E. I can able to download a exe file from my location machine and save it in the disk, but not from the other server, but When I am trying to access it from the server machine it's not downloading, and giving an error like:
java.io.FileNotFoundException: http:\10.128.10.60\home\test\filexilla.exe(The filename, directory name, or volume label syntax is incorrect)
Below is my code:
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
How do I solve the FileNotFoundException?