How to Encode / Decode a .pdf File Using Base64_Encode and Embed the File in an XML Document Using XMLELEMENT? (Doc ID 1468013.1)

Last updated on AUGUST 30, 2017

Applies to:

PL/SQL - Version 11.2.0.3 and later
Information in this document applies to any platform.
*** Checked for relevance on 30-Aug-2017 ***

Goal

Provide sample code which will allow one to:

1.  Read a .pdf file
2.  Encode the .pdf file
3.  Embed the .pdf file in an XML document
4.  Finally, Decode the file after it was encoded and written to disk

Solution

Sign In with your My Oracle Support account

Don't have a My Oracle Support account? Click to get started

My Oracle Support provides customers with access to over a
Million Knowledge Articles and hundreds of Community platforms