My Oracle Support Banner

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

Last updated on MAY 24, 2024

Applies to:

PL/SQL - Version 10.2.0.4 and later
Information in this document applies to any platform.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

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
Symptoms
Changes
Cause
Solution
References


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