Originally posted by Amol Nayak:
If he knows the path relative to the webapp then he can get the
path on the filesystem of the webserver by calling getRealPath.
is never entered. This means that in.read(buf) returns 0 , which in turn means that no data is read, right?
while ((len = in.read(buf)) > 0)
bos.write(buf, 0, len);
Is there any reason why the InputStream does not receive anything on the remote machine, but receives normally on the localhost?