if idftp_Client.Connected then
begin
if dlgOpen_File.Execute then
begin
idftp_Client.TransferType := ftBinary;
idftp_Client.Put(dlgOpen_File.FileName, AnsiToUtf8(ExtractFileName(dlgOpen_File.FileName)));
ChageDir(Utf8ToAnsi(idftp_Client.RetrieveCurrentDir));
end;
end;
ftp已經連接,上傳時總是報錯:Opening ASCII mode data connection
uj5u.com熱心網友回復:
傳輸型別設定不正確。文本型別的用ftASCII,其他程式、多媒體檔案、壓縮檔案等用ftBinary。uj5u.com熱心網友回復:
是的,FTP很簡單的,到處是DEMO啊uj5u.com熱心網友回復:
idftp_Client.TransferType := ftBinary;改成ftASCII
轉載請註明出處,本文鏈接:https://www.uj5u.com/houduan/58255.html
標籤:VCL組件開發及應用
