Corrupt image file after uploading it using ftp co

2019-05-23 23:43发布

问题:

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.