IPWorks MQ 2020 Kotlin Edition

Questions / Feedback?

SetReceiveStream Method

Sets the stream to which the received file data from will be written.

Syntax

public fun setReceiveStream(receiveStream: OutputStream?)

Remarks

This method sets the stream to which the incoming file will be written. This can be set from within the StartTransfer event when a file is received.

The file data will be written to the stream. The stream should be open and normally set to position 0. The component will automatically close this stream if CloseStreamAfterTransfer is true (default). The downloaded content will be written starting at the current position in the stream.

If a download stream is set, the incoming file will not be written to LocalDirectory.

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