Use a Stage File Write Operation with an Opaque Schema
You can use an opaque schema in a stage file action Read File or Write File operation without concern for a schema for the file. The only condition is that whatever is sent to the opaque element in the opaque schema must be base64-encoded data.
For the following use case:
- The integration downloads a zip file using the FTP Adapter Download File operation and unzips and processes each file.
- The files are staged temporarily in Oracle Integration using a stage file action List Files operation.
- The files are iterated over using a for-each action.
- The files are written to a staged directory using a stage file action Write File operation with an opaque schema.
- The files are written to an output directory using the FTP Adapter Write File operation.

- Add a stage file action to an orchestrated integration. See Configure a Stage File Action.
- On the Configure Operation page, select the Write File operation and specify the file name and output directory.
- On the Schema Options page, select XML schema (XSD) document.
- On the Format Definition page, make the following selections.
- Map the FileReference of the for-each repeating element
(ICSFile) to opaqueElement of
StageFileWrite using an
encodeReferenceToBase64 function.