aspose file tools*
The moose likes Other Open Source Projects and the fly likes Commons Net Ftp how to perform checksum on file in the server Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Products » Other Open Source Projects
Bookmark "Commons Net Ftp how to perform checksum on file in the server " Watch "Commons Net Ftp how to perform checksum on file in the server " New topic
Author

Commons Net Ftp how to perform checksum on file in the server

Meir Yan
Ranch Hand

Joined: Apr 27, 2006
Posts: 597
Hello all
im building ftp client that needs to pull files but i allso need to verify that the files
are downloaded completely , i was thinking to do it with checksum , but i didn't found
ant way to do it on the server ftp side .
is there any way to checksum file on the server ftp with Commons Net Ftp ?
thanks
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42285
    
  64
That seems unnecessarily complicated. The FTPFile class tells you how big the file is on the server, so you can compare that to the local file size during or after the download - no need for checksums.


Ping & DNS - my free Android networking tools app
 
jQuery in Action, 2nd edition
 
subject: Commons Net Ftp how to perform checksum on file in the server