Oracle FAQ | Your Portal to the Oracle Knowledge Grid |
Home -> Community -> Usenet -> c.d.o.misc -> CLOB to BLOB + charset conversion
Hi,
I'm migrating posts between two forum applications. The source stores messages in a LONG field while the destination uses UTF16 stored in a BLOB field. I managed to find info on part of this problem - converting from LONG to BLOB in a PL/SQL procedure that essentialy does this:
1. read in a part of the LONG column into varchar2 buffer 2. convert the buffer to raw (using utl_raw.cast_to_raw) 3. write or append the buffer to blob (usingdbms_lob.write/writeappend)
Thanks in advance Received on Wed Jul 13 2005 - 08:25:39 CDT