Corrupt image file after uploading it using ftp command from linux, with type ASCII
Question
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
Solution
transfer it as binary otherwise it will get corrupted as newlines are converted, for example.
OTHER TIPS
Try transferring it using binary mode.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow