How to transfer files through ftp without affecting the integrity of file?
Login to FTP Server and always select BINARY mode for transferring files.
This will allow the system to transfer files properly. Once transferred, file integrity i.e. chksum md5 value can be checked using md5sum command.
Both source file and destination files will show same md5sum value.