• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

copying file from client system to and storing in server

 
srinivas srini
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
matt hooker
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So srinivas, to get this straight. You want your java servlet 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 !!!
 
srinivas srini
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.....
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 65129
92
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Search for the term "upload" in this forum.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic