问题
I have try to transfer a image file using ftp command in linux, from linux platform to windows platform, doing like this:
ftp cs.unitbv.ro
ascii
get test.jpg
After this, when I open the image it says that the file is corrupted. If somebody know how to repair the image file let me know.
Thanks
回答1:
transfer it as binary otherwise it will get corrupted as newlines are converted, for example.
回答2:
Try transferring it using binary mode.
来源:https://stackoverflow.com/questions/1601872/corrupt-image-file-after-uploading-it-using-ftp-command-from-linux-with-type-as