Page 1 of 1

tdbimage problem with ibac examples

Posted: Thu 15 Nov 2007 01:27
by dennis
I am trying to get the 'blob picture' example to work in the IBAC demos. It accepts .bmp's ok, but not .jpeg's.

I added the jpeg unit to the uses clause of the main form and the blob picture form to no avail.

Is this a bug, or was the functionality to display jpegs not included intentionally? (ie - how do I get the demo to accept .jpeg's?)

BTW: I am an 'intermediate' Delphi developer and I am, at this time, just trying out the IBAC components, and I must say, I am very impressed!

Cheers,

Dennis

Posted: Thu 15 Nov 2007 09:51
by Plash
The BlobPictures demo uses the TDBImage component to display pictures. This component can display only BMP images. To work with JPG, you can replace TDBImage with TImage in the BlobPictures demo.
The TDBImage component automatically reads and saves images to TIBCQuery. With the TImage component you need to write code that will read and save images. Please see the discussion in SDAC and MyDAC forums, to find examples of such code:

http://www.crlab.com/forums/viewtopic.php?t=10827
http://www.crlab.com/forums/viewtopic.php?t=9535

Posted: Thu 15 Nov 2007 14:42
by dennis
Thanks for clearing this up for me. I guess I was confused about the functionality of the DBImage component. (According to Delphi 7 by Marco Cantu, the DBImage component supports jpeg's if you add the JPEG unit to the uses clause - apparently this is not the case!).

Cheers,

Dennis