Subject Re: [IBO] Blob problems
Author irogla
--- In IBObjects@yahoogroups.com, Helen Borrie <helebor@...> wrote:
>
> At 10:18 AM 31/01/2008, you wrote:
> >Hi, I just converted from IB/IBX to FB/IBO and are having problems
> >with images I store in blobs. My code which I used with IBX looks like
> >this for reading my images from database:
> >
> >Stream: TMemoryStream;
> >...
> >imgA := TImage.Create(frmA.pnlA);
> >Picture.Assign(TBlobField(DM.qryRead.FieldByName('HEADER')));
> >
> >And like this for saving:
> >
> >Stream_HEADER := TMemoryStream.Create;
> >frmA.imgA.Picture.BitMap.SaveToStream(Stream_HEADER);
> >...
> >DM.qryWrite.ParamByName('HEADER').Assign(Stream_HEADER)
> >
> >Anyone got a clue how to change my code?
>
> What class is your qryWrite statement object?
>
> Helen
>

Before when I used IBX it was TIBQuery, now when I use IBO it is
TIB_Query.

// Johan