Subject Re: [IBO] Graphics from BLOB column
Author Dmitry Beloshistov
Hello, vsokolov65@...!
You wrote to <IBObjects@yahoogroups.com> on Wed, 03 Jul 2002 12:11:20 +0400:

v> Hello,

v> How can I get a bitmap from blob field in the TIB_Query and use it as
v> TBitmap object?
1) TIB_Query1.FieldByName('MY_PICTURE').AssingTo(....);
=== Begin citate from IBO.HLP =================================
Procedure AssignTo(Dest: TObject );
Description
Assigns the column's data contents to another data member passed in.
All necessary data conversions are performed or an exception is raised.
This works very well when moving BLOB data to and from TStrings, TStream,
TBitmap, TPicture, etc.

It does not support passing in a VCL TField.
=== End of citate =============================================
2)TIB_Query1.FieldByName('MY_PICTURE').SaveToFile('TEMP.BMP');
TPicture1.Bitmap.LoadFromFile('TEMP.BMP');

3) See in ..\IBO\AddOn\IB_JPEGImage.*

P.S. Кстати, загляни-ка в news://epsilon.public.interbase - русскоязычная
группа по IB/FB/YA - там тебе и по IBO и по FIB+ и по IBX дадут ответ ;))

WBR, Dmitry Beloshistov AKA [-=BDS=-]
e-mail: torin@...