bytes | Object Object from which to create the attachment, as a byte array. |
encoding (optional) | String The encoding attribute for the attachment. If you do not specify this parameter, the service does not include the encoding attribute in the attachment. |
identity (optional) | String The identity attribute for the attachment. If you do not specify this parameter, the service does not include the identity attribute in the attachment. |
type (optional) | String The MIME type attribute for the attachment. If you do not specify this parameter, or if you specify the type application/xml or a type that starts with text/, the service creates a text (document) attachment. If you specify any other type, the service creates a binary attachment. |
attachment | Resulting attachment. |