I am trying to download a file from a server in this way:
var MeS:TMemoryStream;
begin
Mes:=TMemoryStream.Create;
IdFTP1.Connect;
Mes.Position:=0;
try
IdFTP1.Get(Mes, 'dolcestilnovo.txt', True, False);
finally
MeS.Free;
IdFTP1.Disconnect;
end;
Memo5.Lines.LoadFromStream(Mes);
end;
I must show the content of dolcestilnovo.txt
inside that Memo5, but I have an error on the IdFTP1.Get();
method.
The error says "There is no overloaded version of 'Get' that can be called with these parameters". What can I do?
I thought to use the MemoryStream
since I'm downloading it on an android device.