Subject | Re: [IBO] Blob problems |
---|---|
Author | Helen Borrie |
Post date | 2008-01-30T23:57:18Z |
At 10:18 AM 31/01/2008, you wrote:
Helen
>Hi, I just converted from IB/IBX to FB/IBO and are having problemsWhat class is your qryWrite statement object?
>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?
Helen