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 Extracting Text from a BLOB field?

947629Apr 23 2014 — edited Apr 25 2014

Hi All,

I have a requirement where we need to extract text from a BLOB field and display it using SQL query.


I have tried the below ones but no luck....


Actual Data::

select SCOPE_BIN from CUBE_SCOPE;


SCOPE_BIN

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

(BLOB)


I have used the below query to read the text from BLOB field


select utl_raw.cast_to_varchar2(dbms_lob.substr(SCOPE_BIN)) from CUBE_SCOPE;


but it is giving the output inĀ  unreadable format.


Can any one please help me on this this is very urgent


Thanks you so much for your responses in advance


Thanks,

Rajesh

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 23 2014
Added on Apr 23 2014
18 comments
3,796 views