function FileDownload(AConnection: TConnectionInfo;
ASourceFile: String; var AMemoryStream: TMemoryStream): Integer; overload;
Result := 0;
Host := AConnection.Host;
Username := AConnection.Username;
Password := AConnection.Password;
//Added By Donskie
TransferType := ftBinary;
AsciiFilter := False;
Get(ASourceFile, AMemoryStream, False);
AMemoryStream.Position := 0;
on E: Exception do Result := -1;
ftpConnection : TConnectionInfo;
sPath : String;
memStream : TMemoryStream;
with ftpConnection do
Host := '220.127.116.11';
Username := 'user'
Password := 'temp';
memStream := TMemoryStream.Create;
, 'Temp/1.mp3' , MemStream) > -1 then
the 1.mp3 is 500KB file and i can hear anything in it when i tried to download it using anyFTP client. when i tried indy to get it from the server i can't anymore hear anything. the size is the same with the original but has no voice in it.
is there any problem with the indy included in Delphi 7?