IP*Works! V9 - Online Help
IP*Works! V9
Questions / Feedback?

SetUploadStream Method

Sets the stream from which the component will read data to upload to the server.

Syntax

public void setUploadStream(java.io.InputStream uploadStream);

Remarks

This method is used to set the stream from which the component will read data to upload to the server. If an upload stream is set before the Upload method is 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 Upload again. The content of the stream will be read from the current position all the way to the end and no bytes will be skipped even if StartByte is set to a non zero value (though the server will be instructed to skip those bytes in its file).

Note: SetUploadStream and LocalFile will reset the other.

 
 
Copyright (c) 2018 /n software inc. - All rights reserved.
Build 9.0.6635.0