G
Gilbert Ostlethwaite
Hi
Windows 2003 Server, JDK 1.5.0_09
I have a servlet that is trying to access a .jpg file located on
another server. The servlet builds a file object and uses the .exists()
method to check that its got a valid path/filename and then constructs
a FileInputStream to read the data. Although I know its got a valid UNC
path exists() returns false. I've even tried mounting the remote
directory to the server and hardcoding the path, but still no joy.
Removing the exists() test and opening the FileInputStream also fails
to return the data
Because of some routing issues (yet to be resolved) the connection to
the remote server is extremely slow. the same servlet running on a
server on a different segment of the network with a better connection
speed works as expected, so I was wondering if there's a timeout issue
with accessing remote files and, if so, how do I change this.
Is there any other reason why file.exists() would fail to find a file
that Windows can find?
Regards
Roger
Windows 2003 Server, JDK 1.5.0_09
I have a servlet that is trying to access a .jpg file located on
another server. The servlet builds a file object and uses the .exists()
method to check that its got a valid path/filename and then constructs
a FileInputStream to read the data. Although I know its got a valid UNC
path exists() returns false. I've even tried mounting the remote
directory to the server and hardcoding the path, but still no joy.
Removing the exists() test and opening the FileInputStream also fails
to return the data
Because of some routing issues (yet to be resolved) the connection to
the remote server is extremely slow. the same servlet running on a
server on a different segment of the network with a better connection
speed works as expected, so I was wondering if there's a timeout issue
with accessing remote files and, if so, how do I change this.
Is there any other reason why file.exists() would fail to find a file
that Windows can find?
Regards
Roger