Subject | Re: [IBO] TIB_DSQL |
---|---|
Author | Michael Vilhelmsen |
Post date | 2004-02-23T20:10:41Z |
> when I save / load Blobs from / to Memos (or RTF) I use somethinglike:
> (in my example it's a TIB_Cursor not a TIB_DSQL)Can I use this if I have a statement like this:
>
> Save Memo-content To Blob-column
>
> with myCursor do
> begin
> Memo.Lines.SaveToStream (
> TIB_BlobStream.CreateForColumn (
> FieldByName ( 'MY_BLOBFIELD' ), bsmWrite ) );
> end;
with myCursor do
begin
ParamByName('MyInt').AsInteger := 898;
ParamByName('MyFloat').AsFloat := 989.88;
Memo.Lines.SaveToStream (
TIB_BlobStream.CreateForColumn (
FieldByName ( 'MY_BLOBFIELD' ), bsmWrite ) );
ExecSQL;
end:
Michael