Hello! I'm aware there are numerous posts on this...
# suitescript
m
Hello! I'm aware there are numerous posts on this subject, but I haven't found a working solution for Suitescript 2.0 yet. I need to send a multipart SOAP message via N/https, comprising an XML part (the actual SOAP message) and a binary zip attachment from the File Cabinet (obtaining what is called an MTOM message). Importantly, I cannot use base64 encoding for the binary part; instead, I need to send the raw binary stream. Has anyone managed to achieve something similar? I've attempted using N/encode to convert the base64 from
fileObj.getContents()
into UTF-8, but the resulting file is corrupted. Any suggestion, even partial, will be very appreciated. Thanks in advance!