Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.server -> Re: Convert varchar2 -> BLOB
In article <d5tdr1$toa$1_at_news4.zwoll1.ov.home.nl>, Frank van Bortel
says...
> > Assume a binary doc exists at www.myhost.com/fred.doc
> > and I want to get this into a BLOB in a PL/SQL procedure - what is the
> > easiest way to get the file content (and you have to accept that the
> > pl/sql proce needs to go an get the doc rathe rthan havie it passed-in
> > somehow).
> >
> > Thanks...
> >
> >
> Sorry - wrong version: I looked at 10...
> No, no experience with this, but such a file - wouldn't
> that be encoded, e.g. BASE64?
>
>
Well the file would exist in its native form....
In fact it would appear that I have a solution to the problem now which surprises me.... it appears that you can do the following:
declare
x utl_http.html_pieces;
i number;
l_blob blob; l_tempblob blob; l_raw_chunk raw(2000);
, 10000);dbms_lob.createtemporary(l_blob, TRUE); for i in 1..x.count
dbms_lob.getlength(l_tempblob), l_tempblob );
So thanks for your posts on this - any comments on the above approach?
-- jeremyReceived on Wed May 11 2005 - 12:27:15 CDT