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 content of BLOB in readable format

Saaz EnaNov 25 2016 — edited Nov 25 2016

Hello,

I am using Oracle Database 11g Enterprise Edition Release 11.2.0.4.0.

I have a table that has datatype as BLOB. I would like to read the hex digits from this column.

SQL> SELECT UTL_RAW.CAST_TO_RAW(UTL_RAW.CAST_TO_VARCHAR2(BLOB_DATA))

    FROM BLOB_TABLE where id = 67166920;

UTL_RAW.CAST_TO_RAW(UTL_RAW.CA

--------------------------------------------------------------------------------

82033600020FF01A4C003000D1EE80000FFD001A00000084005C0313FE30090FFE801E0001002800

SQL>

SQL> SELECT UTL_RAW.CAST_TO_VARCHAR2(DBMS_LOB.SUBSTR(BLOB_DATA, 3200,1))

    FROM BLOB_TABLE where id = 67166920;

UTL_RAW.CAST_TO_VARCHAR2(DBMS_

--------------------------------------------------------------------------------

‚ 6

SQL>

Could some one please guide me on how can I read this content in english read able language.

Thanks in Advance

Saaz

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Dec 23 2016
Added on Nov 25 2016
8 comments
8,077 views