Attachment
A complex data type that describes the object in the attachment and contains the attachment as binary data.
Schema
<xsd:complexType name="Attachment">
<xsd:all>
<xsd:element name="ContentId" type="xsd:string"/>
<xsd:element name="ContentType" type="xsd:string"/>
<xsd:element name="ContentLength" type="xsd:long"
minOccurs="0"/>
<xsd:element name="ContentEncoding" type="xsd:string"
minOccurs="0"/>
<xsd:element name="Locale" type="xsd:string" minOccurs="0"/>
<xsd:element name="ContentData" type="xsd:base64Binary"
minOccurs="0"/>
</xsd:all>
</xsd:complexType>
Elements
ContentId
Maps to the attachmentâs MIME header. ContentId is required.
ContentType
The type of file to upload, such as binary.
ContentLength
The length of the object.
ContentEncoding
The encoding the object uses. Cannot exceed 10 characters.
Locale
The object locale.
ContentData
The attachment as binary data. Use ContentData to embed the file in the request.