How do I access a file on a network server?
I can open a local file like this:
File tempFile = new File(detailPath);
try {
InputStream inStream = (InputStream) new FileInputStream(tempFile);
int contentLength = (int)tempFile.length();
...
Is there something "tricky" about accessing a file on a network server?
I get the msg "No such file or directory" so of course the path is not right.
Do you have to imbed server name? what about passwords? ok, I'm totally
clueless on this one. :-)
I have a path that looks something like this:
/users/ws17web/filename
Thanks,
Calven
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]