惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

I
InfoQ
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Apple Machine Learning Research
Apple Machine Learning Research
月光博客
月光博客
B
Blog
罗磊的独立博客
GbyAI
GbyAI
博客园 - 三生石上(FineUI控件)
雷峰网
雷峰网
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Microsoft Security Blog
Microsoft Security Blog
宝玉的分享
宝玉的分享
The GitHub Blog
The GitHub Blog
人人都是产品经理
人人都是产品经理
博客园 - Franky
有赞技术团队
有赞技术团队
WordPress大学
WordPress大学
博客园 - 聂微东
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
V
Visual Studio Blog
MyScale Blog
MyScale Blog
Google DeepMind News
Google DeepMind News
G
Google Developers Blog
aimingoo的专栏
aimingoo的专栏

DEV Community

Authentication Security Deep Dive: From Brute Force to Salted Hashing (With Java Examples) Why AI Systems Don’t Fail — They Drift Spilling beans for how i learn for exam😁"Reinforcement Learning Cheat Sheet" I Replaced Chrome with Safari for AI Browser Automation. Here's What Broke (and What Finally Worked) How Python Borrows Other People's Work The $40 Architecture: Processing 1 Billion API Requests with 99.99% Uptime Vibe Coding: A Workflow Guide (From Zero to SaaS) Most webhook security guides protect the wrong side. The scary part is delivery. Headless CMS for TanStack Start: Build a Blog with Cosmic EU Age Verification App "Hacked in 2 Minutes" — What Actually Happened Comfy Cloud’s delete function does not actually remove files Running AI Models on GPU Cloud Servers: A Beginner Guide Event-driven media intelligence with AWS Step Functions and Bedrock I scored 500 AI prompts across 8 quality dimensions — here's what broke How to Call Google Gemini API from Next.js (Free Tier, No Backend Needed) The Portal Protocol: Reclaiming Human Connection in the Age of AI How to Fix Your Team's Scattered Knowledge Problem With a Self-Hosted Forum Intro to tc Cloud Functors: A Graph-First Mental Model for the Modern Cloud Designing Multi-Tenant Backends With Both Ownership and Team Access I Built a Neumorphic CSS Library with 77+ Components — Here's What I Learned PostgreSQL Performance Optimization: Why Connection Pooling Is Critical at Scale Cómo construí un SaaS multi-rubro para gestionar expensas en Argentina con FastAPI + Vue 3 🚀 I Built an Ethical Hacking Scanner Tool – Open Source Project I Replaced /usage and /context in Claude Code With a Single Statusline A Pythonic Way to Handle Emails (IMAP/SMTP) with Auto-Discovery and AI-Ready Design I Collected 8.9 Million Polymarket Price Points — Here's What I Found About How Markets Really Move EcoTrack AI — Carbon Footprint Tracker & Dashboard Everyone's Using AI. No One Agrees How. 5 self-hosted ebook managers worth trying in 2026 Building Your First AI Agent with LangChain: From Chatbot to Autonomous Assistant
How to Accept Binary Format Files Directly in Oracle Inte...
Naveen · 2026-05-14 · via DEV Community

Naveen

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:

  1. Expose a REST endpoint in OIC.
  2. Accept a file directly as a binary payload.
  3. Write the received binary file to an SFTP directory.
  4. 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 follows:

Prerequisites
Before creating the integration, make sure the following are available:

  • Oracle Integration Cloud instance access
  • REST connection with Trigger role
  • SFTP connection configured successfully
  • Target SFTP directory details
  • Required file naming convention
  • Sample JSON response structure

Step 1: Create REST Connection with Trigger Role
First, create a REST connection in OIC.
While creating the REST connection, select the role as: Trigger

This REST connection will be used to expose the integration as an API endpoint.
Once the REST connection is created and tested successfully, it can be used as the starting point of the integration.

Step 2: Create and Test SFTP Connection
Next, create an SFTP connection in OIC.
Provide the required SFTP details such as:

  • SFTP host
  • Port
  • Username
  • Password or private key
  • Known host key details, if applicable

After entering the required details, test the connection.
The connection should be established successfully before using it in the integration.

Step 3: Create App-Driven Orchestration Integration
Create a new integration in OIC using:App Driven Orchestration
Add the REST connection as the trigger.
Step 4: Configure REST Trigger Operation

  1. Configure the REST trigger with a POST operation.
  2. In the request configuration, select the request payload format as:Binary
  3. In the REST trigger configuration, mention the content type as:Other Media Type
  4. Then provide the media type as:application/csv
  5. If you are handling other file types, you can change the media type accordingly.
  • application/pdf
  • application/zip
  • application/octet-stream
  • text/csv

Step 5: Configure REST Response as JSON

In the response part of the REST trigger, select the response payload format as:JSON Sample
Use the below sample JSON response:
{
"File Properties": {
"FileName": "sfghsfh",
"Directory": "djsdgj",
"status": "gjsgjds",
"UploadedDate": "25-dec-2026"
}
}
This sample will generate the response structure in the mapper.
You can later map actual values from the SFTP write response or assign custom values.

Step 6: Add SFTP Adapter in the Integration Flow
After successfully creating the REST trigger, add the SFTP adapter in the integration flow.
Select the SFTP connection and configure the operation as:Write

Step 7: Configure Target Directory and File Name

  • Provide the target SFTP directory where the file should be written.
  • You can provide the file name directly in the SFTP configuration or dynamically map it later in the mapper. Map REST Binary Payload to SFTP Write

Now open the mapper between the REST trigger and SFTP write activity.
Map the incoming binary payload from the REST trigger request to the SFTP file reference/content field.
The binary stream received from the REST POST request should be passed directly to the SFTP write operation.

Map SFTP Response to REST Response

After the SFTP write operation is completed, map the response from the SFTP activity to the REST response mapper.
Map the output fields as required.

Conclusion
Using this approach, we can directly accept binary files in Oracle Integration Cloud through a REST trigger and write them to an SFTP location without converting the file content into Base64 or any other format.
This is a simple and effective solution when an external application sends files directly through a REST API. By configuring the REST request payload as Binary and the SFTP transfer mode as Binary, OIC can handle the file smoothly and return a proper JSON response after successful upload.
This helps in building clean file-upload integrations where the source system gets an immediate confirmation response with file details after the file is written to SFTP.