Built something you're proud of? Tell the story. A quick G2 review of App Engine or Build Agent helps other developers see what's possible on ServiceNow. Share your experience.

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?