In my Delphi application, i try to download a file with TidFTP client (Indy 10, Delphi 2007) but the result file is bigger than the original. I have read other posts about it and about transferType but still i haven't solve the problem. The code is
IdFTP1 := TIdFTP.Create(NIL);
with IdFTP1 do try
Host := 'www.mysite.com';
username := 'myName';
password := 'myPassword';
passive := TRUE;
Connect;
transferType := ftBinary;
IdFTP1.Get('mySite/data.zip','data.zip',TRUE);
finally
disconnect;
end;
As you see i set transferType just before get, but the result is bigger (about 375 bytes) than the original.
PS. With the same code I haven't problems in the past (few years ago). Is it possible due to server's settings changes ? But FileZila works fine on the same file.