Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Blob to Long Raw conversion
Hi there,
By the way, long and long raw are for backward compatibility only.
To run the code below, create a table traw with n1 number, l1 long raw and also a table tblob n1 number, l1 blob
See the code below as sample:
declare
amount binary_integer := 32000;
buffer long raw;
cursor c1 is select n1, l1 from tblob order by n1;
begin
for crec in c1 loop
dbms_lob.read(crec.l1,amount,1,buffer);
insert into traw values (crec.n1, buffer);
end loop;
end;
/
Allan W. Tham Received on Fri Sep 07 2001 - 00:52:02 CDT