Mime to XML
Posted: Fri Nov 12, 2021 7:19 am
Has anyone worked with the curl_mime _... functions I need to insert a .pdf file into XML, as the following example. Is there hbcurl.a for HMG_3.4.4?
Thanks in advance.
Nexbmm
Code: Select all
curlHandle: = curl_easy_init ()
mime = curl_mime_init (curlHandle)
/ * Add the attachment. * /
part = curl_mime_addpart (mime)
curl_mime_filedata (part, "Invoicexxx.pdf")
curl_mime_encoder (part, "base64")
? '<cbc: EmbeddedDocumentBinaryObject mimeCode = "application / pdf">' + part + '</ cbc: EmbeddedDocumentBinaryObject>'Nexbmm