• Post Reply Bookmark Topic Watch Topic
  • New Topic

File copy

 
vikas mishra
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have to copy a file from client machine to server from JSP

i am useing tomcat 4.0
i m trying this but it's giving error.

String file = "\\"+"\\192.168.5.222\\docupload\\temp\\scanneddoc.tif";
FileInputStream fis = new FileInputStream(file);
 
Jeroen Wenting
Ranch Hand
Posts: 5093
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What are you trying to do?
You can't just try to connect to the client and read a file there. Crackers would be extatic if they could, they would no longer have to do anything to break into other computers anywhere in the world.
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by vikas mishra:
I have to copy a file from client machine to server from JSP

i am useing tomcat 4.0
i m trying this but it's giving error.


Quite right, Jeroen.

If client is agree on it. Just upload the file.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!