Oracle FAQ Your Portal to the Oracle Knowledge Grid
HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US
 

Home -> Community -> Usenet -> c.d.o.server -> Re: CLOB Replacement - RTF format data

Re: CLOB Replacement - RTF format data

From: jeremy <jeremy0505_at_gmail.com>
Date: Wed, 14 Nov 2007 09:57:29 -0800
Message-ID: <1195063049.145098.52020@19g2000hsx.googlegroups.com>


On 12 Nov, 19:26, "John K. Hinsdale" <h..._at_alma.com> wrote:
> On Nov 12, 11:32 am,jeremy<jeremy0..._at_gmail.com> wrote:
>
> > We have a requirement to be able to take a .rtf file ...
> > in the database as a BLOB) and do a set of replacements
> > ... Somehow it appears
> > that we are sometimes "corrupting" the RTF
>
> Jeremy, this is what I would do if it were me:
>
> - Find a way to extract the contents of the BLOB column to a file
> prior to the update
> - Do the update (to-CLOB, replace, to-BLOB)
> - Extract the BLOB to a file again under a different name
> - Run a binary diff tool like "bsdiff" and see what changed.
>

Thanks for your response. We identified our problem to be that we were taking as input a BLOB, converting to CLOB, doing character replacements then converting back to BLOB.

When we kept it as BLOB and used utl_raw.cast_to_raw in our dbms_lob.write statements, the problems were solved.

--
jeremy
Received on Wed Nov 14 2007 - 11:57:29 CST

Original text of this message

HOME | ASK QUESTION | ADD INFO | SEARCH | E-MAIL US