tdbimage problem with ibac examples

Discussion of open issues, suggestions and bugs regarding IBDAC (InterBase Data Access Components) for Delphi, C++Builder, Lazarus (and FPC)
Post Reply
dennis
Posts: 10
Joined: Tue 23 Oct 2007 14:10

tdbimage problem with ibac examples

Post by dennis » Thu 15 Nov 2007 01:27

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

Plash
Devart Team
Posts: 2844
Joined: Wed 10 May 2006 07:09

Post by Plash » Thu 15 Nov 2007 09:51

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

dennis
Posts: 10
Joined: Tue 23 Oct 2007 14:10

Post by dennis » Thu 15 Nov 2007 14:42

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

Post Reply