Create a ConnectApi.BinaryInput object to attach files to feed items and comments.
The constructor
is:
ConnectApi.BinaryInput(blob, contentType, filename)
The constructor takes these arguments:
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 |