Skip to content

Commit fc64591

Browse files
committed
BLOB-to-from-ATP
1 parent f199549 commit fc64591

File tree

12 files changed

+496
-0
lines changed

12 files changed

+496
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# REST services to store and retrieve BLOB from ATP
2+
Assets that contain oic project that can be used as template for the storing and retrieving attachments from Oracle ATP Database
3+
4+
## Using the Oracle Autonomous Transaction Processing Adapter to store and retrieve binary objects
5+
OIC project Postman collection implementing the API request signing required by the Oracle Cloud Infrastructure API, as well as capturing some sample OCI requests.
6+
7+
## CICD - OIC3 quickstart Example
8+
This simple template project demonstrates how you can send multipart mixed content payload through Oracle Integration to an Autonomous Database and then later retrieve the attachment from DB. All this can be invoked/consumed from an external application through REST API.
9+
10+
Review Date: 15.04.2025
11+
12+
# When to use these assets?
13+
14+
These assets should be used whenever needed to design and implement REST processing of multipart/mixed payloads and retrieving the binary large objects from OIC Staging database(ATP).
15+
16+
# How to use these asset?
17+
18+
The information is generic in nature and not specified for a particular customer.
19+
- Project solution and installation is described in the ./filex/OIC-Project-REST-write&retrieveBLOB-ATPadapter.pdf
20+
- Project solution logical view for the OCI Integration Cloud Architecture used is located in ./files/img
21+
- Postman collection and curl commands to test the services are located in ./filex/oic-clients
22+
- OIC project archive .car file is located in ./files/oic-roject
23+
- Sql commands to create table necessary for the service run and sample payloads and content are located in ./files/oic-prereqs
24+
25+
26+
# License
27+
28+
Copyright (c) 2025 Oracle and/or its affiliates.
29+
30+
Licensed under the Universal Permissive License (UPL), Version 1.0.
31+
32+
See [LICENSE](https://github.com/oracle-devrel/technology-engineering/blob/main/LICENSE) for more details.

app-dev/app-integration-and-automation/oracle-integration-cloud/07-oic-REST-write&retrieveBLOB-ATPadapter/files/img/IntegrationCR.drawio

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
curl -X POST -H 'Authorization: Basic yourtoken' -H 'Accept: application/json' -H 'Content-Type: multipart/mixed' --form '[email protected]' --form 'data={ \"AccountInfo\" : { \"id\" : \"1232\",\"detectedDocumentTypes\" : [ { \"documentType\" : \"PASSPORT\", \"confidence\" : 1.0 } ], \"documentFields\" : [ { \"fieldLabel\" : \"FirstName\", \"fieldValue\" : \"BARBARA\" }, { \"fieldLabel\" : \"LastName\", \"fieldValue\" : \"SPECIMEN\" }, { \"fieldLabel\" : \"Country\", \"fieldValue\" : \"BEL\" }, { \"fieldLabel\" : \"Nationality\", \"fieldValue\" : \"BEL\" }, { \"fieldLabel\" : \"BirthDate\", \"fieldValue\" : \"1999/11/06\" }, { \"fieldLabel\" : \"ExpiryDate\", \"fieldValue\" : \"2013/02/24\" }, { \"fieldLabel\" : \"Gender\", \"fieldValue\" : \"F\" }, { \"fieldLabel\" : \"DocumentType\", \"fieldValue\" : \"P\" }, { \"fieldLabel\" : \"DocumentNumber\", \"fieldValue\" : \"EH000000\" } ] } }' 'https://teamoic3-frrnyzlwrqhn-fr.integration.eu-frankfurt-1.ocp.oraclecloud.com/ic/api/integration/v2/flows/rest/project/POB_RESTWITH_TO_DB/POC_WRITEACCOUNTANDA/1.0/accounttoAttachment?tracker=123'
2+
3+
4+
5+
curl -X POST -H 'Authorization: Basic yourtoken' -H 'Accept: application/octet-stream' -H 'Content-Type: application/json' -d '{ \"AccountInfo\": { \"id\": \"1232\" } }' 'https://teamoic3-frrnyzlwrqhn-fr.integration.eu-frankfurt-1.ocp.oraclecloud.com/ic/api/integration/v2/flows/rest/project/POB_RESTWITH_TO_DB/POC_READACCOUNTANDAT/1.0/readAccountAtt?tracker=123' --output ./response.png

0 commit comments

Comments
 (0)