Skip to Main Content

Database Software

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 convert BLOB data into string format.

849208Mar 22 2011 — edited Mar 28 2011
Hi,
I have problem while converting blob data into string format.
for example,

Select dbms_lob.substr(c.shape.Get_wkb(),4000,1) from geotable c

will get me the first 4000 byte of BLOB .

When i using SQL as i did above,the max length is 4000, but i can get 32K using plsql as below:

declare
my_var CLOB;
BEGIN
for x in (Select X from T)
loop
my_var:=dbms_lob.substr(x.X,32767,1)
end loop
return my_var;


I comfortably convert 32k BLOB field to string.
My problem is how to convert blob to varchar having size more than 32K.

Please help me to resolve this,
Thanx in advance for the support,
Nilesh
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 25 2011
Added on Mar 22 2011
3 comments
8,193 views