Question
Insert MTOM attachment in Pega
Does anyone implemented this in pega --> Source: Insert MTOM Attachment
Where Soap Request will contain:
<image>
<xop:Include xmlns:xop='http://www.w3.org/2004/08/xop/include' href='cid:http://example.org/myimage.gif'/>
</image>
Where href='cid:http://example.org/myimage.gif', references to:
--MIME_boundary
Content-Type: image/gif
Content-Transfer-Encoding: binary
Content-ID: <http://example.org/myimage.gif>
// binary octets for image
--MIME_boundary
Can we leverage on pyAttachmentPage / Data-WorkAttach-file in creating the MIME part?
How can we obtain/create a contentId e.g. cid:http://example.org/myimage.gif?
Provided the connector has the 'MTOM enabled' tick box ticked, and the type is defined as base64binary (and you put the binarystream in the property during mapping) the cid creation and separation of content should be transparent.