Hi:
can anyone help me with the transfer of afile from one machine to another using servlets. I want a java program which when run from the dos prompt would transfer a file on my machine (location is hardcoded) to another machine and save it in a particular folder on that machine. both the machines are in the same network.
naren
Naren,
If u are looking to upload a file to another machine/server there are a couple of ways to go about it.
1) Jason hunter has a mutipart request/response @ www.servlets.com( (http://www.servlets.com() for Form based file uploads)
2) You can use this code which is given in the o'reilly book
<BLOCKQUOTE><font size="1" face="Verdana,Arial,Helvetica">quote:</font><HR>Originally posted by narensv:
Hi:
can anyone help me with the transfer of afile from one machine to another using servlets. I want a java program which when run from the dos prompt would transfer a file on my machine (location is hardcoded) to another machine and save it in a particular folder on that machine. both the machines are in the same network.