hi all please let me know how can we read a file(any file) which is at client location, from client system i should read the file and write it to the file at the server side with the same file name as that of at client system.. if any of you could paste a small code in this regard i will be very much thankful should we make use of IP address for reading a file from client location? im using apache tomcat 4.1
So srinivas, to get this straight. You want your javaservlet to have access to read the contents of a client file system and copy a file to the server. You would need the client to 'request' this action (such as using an html 'file' component and allowing them to 'post' this file to the server. Java's security requirements (in fact - just general security) mean that letting a server access a clients FS 'at will' is a total NO NO !!!
Its not what you do, its the way you say you've done it.
Joined: Feb 03, 2004
we allow the client to select a file using a html file and once the file is selected the file has to be stored in the server.....