Regarding application/octet-stream attachment type

sanjeevkumar
Tera Contributor

Hi Team,

 

We are using GlideSysAttachment.write Api to attache the attachment to the ticket. It is working in all the cases but failing to handel "application/octet-stream" type. 

 

API

var att = new GlideSysAttachment();
var result = att.write(gr, attachments["name"], attachments["type"],decodeBytes))

 

Payload

<ns:attachment>
<name>fileName.txt</name>
<type>application/octet-stream</type>
<content>data</content>
</ns:attachment>

1 REPLY 1

acjunior
Tera Contributor

Did you manage the problem?
Could you share?