i am trying to convert .wav files to FileInputStream. These .wav files are located on the server. This sever is accessible only by given IP address. these .wav files are successfully playing when i hit them on chrome. But at the conversion time the java code is giving me FileNotFoundException. how can I solve this problem ? thank you.
following URL is one of them
https:\\192.168.1.252\\monitor_wav\\OUT7048-20180503-083949-1525316989.211806.wav
following is my code to convert file
try {
File fl = new File("https:\\192.168.1.252\\monitor_wav\\OUT7048-20180503-083949-1525316989.211806.wav");
FileInputStream fis = new FileInputStream(fl);
} catch (Exception e) {
e.printStackTrace();
}
i am facing the following error
java.io.FileNotFoundException: https:\192.168.1.252\monitor_wav\OUT7048-20180503-083949-1525316989.211806.wav (The filename, directory name, or volume label syntax is incorrect)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at com.transfer.conn.Test.wavToStream(Test.java:19)
at com.transfer.conn.Test.main(Test.java:25)