ConnectApi.Binary​​Input Class

Create a ConnectApi.BinaryInput object to attach files to feed items and comments and to add repository files.

The constructor is:

ConnectApi.BinaryInput(blob, contentType, filename)

The constructor takes these arguments:

Argument Type Description Available Version
blob Blob Contents of the file to be used for input 28.0
contentType String MIME type description of the content, such as image/jpg 28.0
filename String File name with the file extension, such as UserPhoto.jpg 28.0