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

Last updated on JULY 05, 2017

Applies to:

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

Symptoms

- 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 10.2.0.4 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.

Changes

Trying to Load and Extract PDF file to Oracle Database.

Cause

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