cmd ftp mput - jpeg files differs from original file

[亡魂溺海] 提交于 2019-12-04 05:19:55

问题


currently im executing this batch for ftp -s:

open 192.1.2.3
USER
PASSWORD
cd "folder"
lcd "c:\folder"
prompt
mkdir 20140730
cd "20140730"
mput *.jpeg
quit

During testing I was trying to mput like 10 files and everything seems fine. Now im transfering aprox. 1400 files with total size 700MB and my problem is that uploaded file is different then the original one. JPEG seems to be corrupted, on some image is lighter part another part is dark, or there are some coloured lines or parts on image... Is there way check if files moved by mput are same with source files? All files i have checked are affected.


回答1:


Issue the binary keyword in the script before transferring the files.

prompt
binary

The binary keyword stops files being truncated at the first EOF character, which is the default behaviour in text transfer mode.



来源:https://stackoverflow.com/questions/25042867/cmd-ftp-mput-jpeg-files-differs-from-original-file

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