Corrupt image file after uploading it using ftp co

2019-05-23 23:22发布

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

2条回答
Ridiculous、
2楼-- · 2019-05-23 23:58

Try transferring it using binary mode.

查看更多
趁早两清
3楼-- · 2019-05-24 00:19

transfer it as binary otherwise it will get corrupted as newlines are converted, for example.

查看更多
登录 后发表回答