Click here to Skip to main content
15,891,657 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,

I am trying to copy files from one directory to another directory using FTP. while i try to copy files using put method, it copies the file but its content size was zero(0). In other case if i am copied from the local machine its works perfectly. I dont know how to copy file using FTP without any data losing. I am using the following class to fetch the files

sun.net.ftp.FtpClient

is there any suggestion regarding this.?
Posted

1 solution

take a look here[^] or check out one of the other tutorials.

Did you check that the content was transmitted? or is it just a folder/a file you create on the other machine?
 
Share this answer
 
Comments
Andavar Perumal 5-Jul-12 7:23am    
thanks for the quick response.

content was not transmitted. file only created on the other machine.
may i have to do anything here?
TorstenH. 6-Jul-12 0:51am    
I suppose you've got a connection between the machines, because you're able to create a folder/file on the other machine.
Now you need to find out why the files are not transmitted. Add logging to your code - lots of logging (use log4j for that).

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900