My Oracle Support Banner

DBMS_LOB Loading and Extracting Binary File To Oracle Database (Doc ID 1307346.1)

Last updated on DECEMBER 17, 2019

Applies to:

PL/SQL - Version and later
Information in this document applies to any platform.
***Checked for relevance on 17th Oct 2016***


- Loading (use of dbms_lob.loadfromfile (OR) dbms_lob.loadblobfromfile does not make difference as the results are same) a PDF file into Oracle 10g Database as blob data type and using the utl_file to extract the file.  Extracted file ends up showing no data from the Adobe Reader and checking to open it from ultra edit gives different or unknown characters.  

- Characters like %x0A (LineFeed) gets inserted after each occurrence of a %x0C (FormFeed) character, corrupting the BLOB data such as PDF file.


Trying to Load and Extract PDF file to Oracle Database.


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.