IPWorks MQ 2020 Kotlin Edition

Questions / Feedback?

SetSendStream Method

Sets the stream to be sent.

Syntax

public fun setSendStream(sendStream: InputStream?, filename: String?)

Remarks

This method sets the stream to be sent to the recipient. Filename specifies the name of the file. If an upload stream is set before the SendFile method is called, the content of the stream will be read by the component and sent. 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 SetSendStream again before calling SendFile again.

The content of the stream will be read from the current position all the way to the end.

Note: SetSendStream and LocalFile will reset the other.

Copyright (c) 2021 /n software inc. - All rights reserved.
IPWorks MQ 2020 Kotlin Edition - Version 20.0 [Build 7941]