使用来自linux的ftp命令上传文件并使用ASCII类型,损坏的图像文件 [英] Corrupt image file after uploading it using ftp command from linux, with type ASCII

查看:188
本文介绍了使用来自linux的ftp命令上传文件并使用ASCII类型,损坏的图像文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Linux中使用ftp命令传输图像文件,从linux平台到Windows平台,如下所示:

  ftp cs.unitbv.ro 
ascii
get test.jpg

在此之后,当我打开图像时说它文件已损坏。如果有人知道如何修复图像文件,请告诉我。



谢谢 解决方案

将其转换为二进制文件,否则在换行时会损坏。


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

解决方案

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

这篇关于使用来自linux的ftp命令上传文件并使用ASCII类型,损坏的图像文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆