Corrupt image file after uploading it using ftp command from linux, with type ASCII

£可爱£侵袭症+ 提交于 2019-12-07 18:44:50

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!