bytes | Object Object from which to create the attachment, as a byte array. |
encoding (optional) | String The encoding attribute for the attachment. |
identity (optional) | String The identity attribute for the attachment. |
soxType (optional) | String The SOX type attribute for the attachment. |
documentType (optional) | String The document type attribute for the attachment. |
contentType (optional) | String The MIME type attribute for the attachment. Values are application/xml or a type that starts with text/. |
type (optional) | This parameter is identical to and has been superseded by the contentType parameter. |
attachment | Resulting attachment. |