M
mineshdesai
Hello,
I have a requirement in which i want to read a file from another
machine in the network. And also the machine is password protected.
Can any one help me out in this.
I tried doing it in following way,
URI uri = URI.create("file://9.182.198.145/shared");
File file = new File(uri);
As i excute this code i get an exception as:
java.lang.IllegalArgumentException: URI has an authority component
Can any one help me out in this.
Thanks in Advance
I have a requirement in which i want to read a file from another
machine in the network. And also the machine is password protected.
Can any one help me out in this.
I tried doing it in following way,
URI uri = URI.create("file://9.182.198.145/shared");
File file = new File(uri);
As i excute this code i get an exception as:
java.lang.IllegalArgumentException: URI has an authority component
Can any one help me out in this.
Thanks in Advance