Oracle CRM On Demand REST API Developer's Guide > Using the Oracle CRM On Demand REST API > Working with Resource Attachments >

Retrieving Attachments


You can retrieve Oracle CRM On Demand attachments by sending an HTTP GET request to the resource's URL.

NOTE:  The response body is in Base64 Encoding.

The following details are for a request to retrieve an attachment on the Oracle CRM On Demand Server:

  • URL: https://<host>/OnDemand/user/Rest/latest/CustomObjects8/1QA2-1S4YSD/enclosure/Attachment
  • HTTP Method: GET
  • Content-Type: None
  • Request body: None

The following are the details for the response to a successful request:

  • HTTP Code: 200
  • Content-Type: <enclosure dependent>
  • Location: https://<host>/OnDemand/user/Rest/latest/CustomObjects8/1QA2-1S4YSD/enclosure/Attachment
  • Response body: iVBORw0KGgoAAAANSUhEUg.....FTkSuQmCC
Oracle CRM On Demand REST API Developer's Guide, Release 32 Copyright © 2016, Oracle and/or its affiliates. All rights reserved. Legal Notices.