Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

APEX_WEB_SERVICE - Append to multipart

partlycloudyOct 2 2022

The APEX_WEB_SERVICE.APPEND_TO_MULTIPART API allows to construct a multipart form data HTTP request body where each part could be a different content type e.g. plain text, JSON, binary, base 64 encoded, etc.
Questions
When we use this to append a PDF file encoded as base 64 using the APEX_WEB_SERVICE.BLOB2CLOBBASE64 API, how can we add a Content-Transfer-Encoding: base64 to that part?
The HTTP headers for the request need to specify Content-Type: multipart/form-data; boundary=--d74496d66958873e where the boundary is automatically generated by the GENERATE_REQUEST_BODY API so we don't have access to the value. So does the MAKE_REQUEST API automatically add this Content-Type header (how does it know to do so?). If not, we can add it manually using the SET_REQUEST_HEADERS API but how can we get the value of the boundary separator?

@carsten-czarski-oracle
Thanks

This post has been answered by Carsten Czarski-Oracle on Oct 4 2022
Jump to Answer
Comments
Post Details
Added on Oct 2 2022
7 comments
2,158 views