How to send an image file in a REST call using RESTMessageV2 platform API?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2018 10:24 PM
Hi,
How to send an image file in a REST call using RESTMessageV2 platform API?
(Payload body content type : application/octet-stream)
Thanks.,
Mohan..
- Labels:
-
Platform and Cloud Security
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2018 10:34 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-26-2018 10:45 PM
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?

- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎11-27-2018 12:08 AM
Refer below URL for detailed code for Sending Attachments.
https://community.servicenow.com/community?id=community_question&sys_id=9fa483e9dbd8dbc01dcaf3231f96199e
Regards
RP