Internet Direct (Indy) Version 9.0.2 Beta
TIdTrivialFTP.Get
Retrieve a file from a TrivialFTP server.

procedure Get(const ServerFile: String; DestinationStream: TStream); overload;
procedure Get(const ServerFile: String; const LocalFile: String); overload;
Parameters
const ServerFile: String
File name on the server.

DestinationStream: TStream
File name on the local file system.

Description
Get is an overloaded method to retrieve a file from a TrivialFTP server.

The version requiring a local filename creates a TFileStream, then calls the stream version of the Get method (it is freed automatically).

The stream version of the Get method transmits the stream, firing the onWork, onWorkBegin, onWorkEnd during the process.