SetUploadStream Method

Sets the stream to be uploaded to the server.

procedure SetUploadStream(UploadStream: TStream);

Remarks

This method sets the stream to be uploaded to the server. If an upload stream is set before the Post or Put method are called, the content of the stream will be read by the component and uploaded to the server. The stream should be open and normally set to position 0. The component will automatically close this stream if CloseStreamAfterTransfer is true (default). If the stream is closed, you will need to call SetUploadStream again before calling Post or Put again. The content of the stream will be read from the current position all the way to the end.

Note: SetUploadStream and LocalFile will reset the other.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks 2020 Delphi Edition - Version 20.0 [Build 8307]