Re: file.exists() timeout?
"Andrew Thompson" <andrewthommo@gmail.com> wrote in message
news:1169747769.646435.15050@v45g2000cwv.googlegroups.com...
On Jan 26, 3:41 am, "Gilbert Ostlethwaite"
<roger.var...@googlemail.com> wrote:
..
I have a servlet that is trying to access a .jpg file located on
another server. ..
(snip)
Can you produce an URL for that JPG?
(I do not quite get all this talk about files.)
I don't think the problem has anything to do with the contents of the
file being accessed. Windows allows you to specify filenames that refer to
files that exists on remote machines on a LAN (e.g. instead of
"C:\myDirectory\myFile.txt", you could use
\\remoteComputerName\remoteDirectory\remoteFile.txt) and the OS is supposed
to abstract any special handling that remote file access might have in
comparison to local file handling (i.e. as a programmer, you don't need to
make your Windows programming "network aware" -- as long as you use MS's
file handling API, it's all support automatically for you).
I'm a bit fuzzy about this part of the OP's probelm description, but it
sounds like the computer the Java application is running on can access the
file just fine (when using Windows Explorer, for example), but the Java
application itself is unable to access the file, and the OP suspects the
problem might have something to do with timing-out, as the LAN connection is
apparently very slow.
- Oliver