Menu

1 / 9

How to Accept Binary Format Files Directly in Oracle Integration Cloud (OIC) and Return JSON Response from SFTP

DEV Community·Naveen·6 months ago
#yY3wgUCd
#api#automation#cloud#tutorial#rest
Reading 0:00
15s threshold

Overview

In Oracle Integration Cloud (OIC), there are scenarios where we need to receive files directly from an external application through a REST API and then place those files into an SFTP location.

Usually, files like CSV, ZIP, PDF, or other binary content are handled as file-based data. In this blog, we will see how to configure an OIC integration to accept a binary file as input through a REST trigger, write that file to SFTP in binary mode, and finally return a successful JSON response with file details.

Use Case

The requirement is to:

Expose a REST endpoint in OIC.

Accept a file directly as a binary payload.

Write the received binary file to an SFTP directory.

Return a JSON response containing file details such as:

File name

Directory

Status

Uploaded date

This approach is useful when the source system sends the file directly in the REST request body instead of sending file content as Base64 or multipart form data.

High-Level Flow

The integration flow is as…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.