Welcome to the Xceed Community Sign in | Join | Help
Community Search  

File Integrity Check

Sort Posts: Previous Next
  •  10-17-2007, 10:20 AM Post no. 5280

    File Integrity Check

    Does the FTP component support file integrity checks? For example, when a file is uploaded or downloaded, is there any way to know that the file is exactly the same on both the local and remote ends? I saw where you can check the size of the file but what if data is some how shifted around and the filesize remains the same? For binary type files, like Word documents, this would result in the file being corrupt but the filesize checks wouldn't catch that. What would really be nice is if you could somehow hash the file before the transfer occurs and then re-hash it after the transfer. If the two hashes match, you know the file is good. Does anyone know if this is possible?
  •  10-19-2007, 2:31 PM Post no. 5281 in reply to 5280

    Re: File Integrity Check

    Our component does not offer this kind of possibility.

    For the moment, you could compare the file sizes, but there is possibility, like you already said, that the size would be the same even if the data is not.

    An other possibility would be to calculate the CRC of a file each time you add it to your server, you keep the result and you compare it to your local file before doing the transfer.
    Charles Bérubé-Rémillard
    Technical Support
    Xceed Software Inc.
View as RSS news feed in XML
Contact | Site Map | Reviews | Legal Terms of Use | Trademarks | Privacy Statement Copyright 2008 Xceed Software Inc.