CentOS 上傳檔案到FTP SERVER MD5SUM值不同

我用centos compile openwrt,得出firmware後上傳到自己的FTP Server裡面. 對比一下ftp server同centos裡的firmware的md5值,發現兩者不符.
PS.在centos是用ftp指令put個file上去ftp server的

到底什麼原因令到上傳後的檔案MD5值不同? 試過上傳很多不同的檔案,得出相同的結果

你用咩野 mode ? ASCII 定 binary ???
如果唔知既, 試試轉用 binary mode 再 upload

轉 binary mode 既 ftp command 係 "binary"

TOP

你用咩野 mode ? ASCII 定 binary ???
如果唔知既, 試試轉用 binary mode 再 upload

轉 binary mode 既 ft ...
死仔飽 發表於 2014-11-4 11:26


得左,點解要轉binary mode先得?

TOP

回覆 3# 321

我都唔知, 但係 normally binary data 都用番 binary mode.....

TOP

搞左好耐,仲以為自己compile既firmware有問題

TOP

ascii有時會format唔同左, 主要係D new line character

TOP

ASCII 見到 0xff 就停㗎喇。

TOP

FYR (from wiki)

ASCII mode: used for text. Data is converted, if needed, from the sending host's character representation to "8-bit ASCII" before transmission, and (again, if necessary) to the receiving host's character representation. As a consequence, this mode is inappropriate for files that contain data other than plain text.

Image mode (commonly called Binary mode): the sending machine sends each file byte for byte, and the recipient stores the bytestream as it receives it.

TOP