How to send an image file in a REST call using RESTMessageV2 platform API?

mohan29
ServiceNow Employee
ServiceNow Employee

Hi,

How to send an image file in a REST call using RESTMessageV2 platform API?

(Payload body content type : application/octet-stream)

Thanks.,

Mohan..

3 REPLIES 3

Ct111
Tera Sage

Hi check the below 

 

https://docs.servicenow.com/bundle/london-application-development/page/integrate/custom-web-services/reference/r_ScriptedRESTExampleStreamAttach.html

 

 

This example shows wat you need

 

 

Mark my ANSWER as CORRECT and HELPFUL if it helped

mohan29
ServiceNow Employee
ServiceNow Employee

Thank you for the reply. I am interested in sending the attachment as a REST client not as a REST server. Can you please let me know there is a way to do it?

 

Rahul Priyadars
Giga Sage
Giga Sage

Refer below URL for detailed code for Sending Attachments.

https://community.servicenow.com/community?id=community_question&sys_id=9fa483e9dbd8dbc01dcaf3231f96199e

Regards

RP