procedure DownloadToStream(const SourceName: string; Destination: TStream; FileOffset: Int64 = 0);



Call the DownloadToStream method to copy a file from a remote machine to a local one.

To create a local resulting file with the required attributes (for example, with the attributes corresponding to the ones that the file on the server has) handle the OnCreateLocalFile event. By default, a file with the default attributes is created.

If the NonBlocking property is set to True, then the control is returned immediately and you can see the result of the operation execution by handling the OnSuccess and OnError events.



SourceName - holds the initial path to the file that is being copied.
Destination - holds the destination data stream to copy the file to.
FileOffset - the offset in bytes relative to the beginning of the file where downloading starts at.


See Also





SecureBridge Components, Copyright © 2007-2021 Devart. All Rights Reserved. Provide Feedback Visit Forum Request Support