Welcome to Community Week 2025! Join us to learn, connect, and be recognized as we celebrate the spirit of Community and the power of AI. Get the details  

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
Tera Sage

Refer below URL for detailed code for Sending Attachments.

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

Regards

RP