My Oracle Support Banner

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 JULY 05, 2023

Applies to:

PL/SQL - Version and later
Information in this document applies to any platform.


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


To view full details, sign in with your My Oracle Support account.

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

In this Document

My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.