Subject Re: [IBO] IB_COlumn Assign AV
Author Helen Borrie
At 02:16 PM 13/01/2005 +1100, you wrote:

>Just looking for a hint here..
>I have the following code:
> stRVF :=
>IB_QConvertToRTF.CreateBlobStream(IB_QConvertToRTF.FieldByName('ANSWER'),
>bsmRead);

That prepares a Blob column to be *read from* as a stream. If you want it
to be *written to*, you need to make its BlobStreamMode bsmWrite; or if
you want it to be both, make it bsmReadWrite.

> RichViewUtil.LoadRVFFromStream(AnsRVF);
> RichViewUtil.SaveRTFToStream(AnsRTF, False);
>--> IB_QConvertToRTF.FieldByName('ANSWERRTF').Assign(AnsRTF);
>which AVs on the marked line...

Yup. Change the mode of the receiving stream object and you should be fine.

Helen