RESTMessageV2 - setRequestBodyFromStream(Object stream)

Set the body content of a PUT or POST message using a binary stream.

You can use this method to send binary files such as images or archives using REST messages. If the request is not a PUT or POST request, the request body is ignored.

Table 1. Parameters
Name Type Description
stream Object The binary data to send, such as an attachment or a stream from a 3rd-party service.
Table 2. Returns
Type Description