My Oracle Support Banner

Rest api response payload does not include streamReference (Doc ID 2969599.1)

Last updated on SEPTEMBER 12, 2023

Applies to:

Oracle Integration-OIC - Version 21.2.2.0.0 and later
Information in this document applies to any platform.

Symptoms

User has configured a rest adapter activity to receive a binary content in response from an external rest api call.
User has rest adapter activity which has response payload format as binary with media-type: application/octet-stream.

Example generated curl by OIC rest adapter activity :

curl --verbose -X GET https://<external rest api url>
-H "Authorization: [authorization-value]" \
-H "Accept: application/octet-stream"

Ref: https://docs.oracle.com/en/cloud/paas/integration-cloud/rest-adapter/support-application-octet-stream-mime-attachment-binary-payloads.html#GUID-6FE1B456-7E4D-45C0-B274-F791AA524144

In the integration flow, 200 OK is received in the response with all the headers e.g. 'Content-Disposition'.
There is no error.

Issue is no streamReference available in the response payload.
Also when trying to execute encodeReferenceToBase64( string( streamReference)) it returns that its an empty string argument indicating nothing returned in streamReference object.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


In this Document
Symptoms
Cause
Solution
References


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.