Skip to Main Content

SQL & PL/SQL

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

How to extract data from blob field to a text file?

SaiRam_BathulaFeb 14 2017 — edited Feb 15 2017

Greetings to all Experts,

Can you please let me know  how to extract blob data and save to file in readable format.

I had developed a Pl/SQl and used DBMS_LOB.READ for reading data from blob field and UTL_FILE.PUT to write to a file.

DBMS_LOB.READ( IBLOB, L_AMOUNT, L_POS, L_BUFFER);

UTL_FILE.PUT(L_FILE, L_BUFFER);

The procedure got compiled successfully and when I executed a file is getting generated but with @@@@@@ symbols instead of actual data.

Please help what changes I have to do to code.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Mar 15 2017
Added on Feb 14 2017
25 comments
14,141 views