IPWorks OpenPGP 2020 Java Edition

Questions / Feedback?

SetMessageStream Method

Sets the stream to be uploaded to the server as part of the message.

Syntax

public void setMessageStream(java.io.InputStream messageStream);

Remarks

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

Note: This method and LocalFile will reset the other.

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