Discussion Locked

Oracle BLOB extract/view

0 helpful
1 reply
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I am having trouble finding the best way to display BLOB data from an Oracle table via PL/SQL.

I had limited success getting data out via
DBMS_LOB.SUBSTR() -- but it is just numbers representing the binary code. The particular BLOB data thatI wish to extract and view is RTF (formatted) text. Additionally, Is there a way (function/package) to convert it to plain ASCII text?

1 reply

by sparent

We've managed to handle RAWs pretty well under Oracle7.3

We used the functions and procedures found in the UTIL_RAW package. You might be able to use these on your LOB. Otherwise, you'll have to write your own conversion tools: hexadecimal ascii to decimal ascii value, ascii to varchar2, etc.

Have you checked for similar utilities within DBMS_LOB itself?

This discussion is closed to new replies.