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 read a BLOB column from Database?

user13393409Jan 28 2011 — edited Jan 28 2011
Hi,
I need to read a BLOB column from database. My oracle version is oracle 10g. I tried the below command to fetch:
select utl_raw.cast_to_varchar2(dbms_lob.substr(BLOB_FIELD)) from TABLE
but the result is some junk characters.
I think this query will go fine with CLOB data type. But my data type is BLOB and it’s not an image file. .
Can anyone please suggest any method to do this?


Thanks...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 25 2011
Added on Jan 28 2011
2 comments
1,233 views