Link to home
Start Free TrialLog in
Avatar of joshfly
joshfly

asked on

EInvalidGraphic Error...

hello,
im using MSSQL 2000, i have a table named 'Customer' which contains the customer details..included photo.

The data type for the photo field is image...
im using report builder, on the design and preview time i can view the photo..(the photo is JPEG graphic type), but when i compiled and run the application to preview the customer report...the raise up the EInvalidGraphic error stated Invalid Bitmap...i do set the photo as JPEG during the design time.

thanks
josh
Avatar of mokule
mokule
Flag of Poland image

Hi

Maybe add
uses jpeg
Avatar of joshfly
joshfly

ASKER

sorry mokule, i tried but still have the same problem...
try my component TGIDBImage from:
https://www.experts-exchange.com/questions/20972078/How-to-add-Picture-to-database-ms-access-in-Delphi.html

It supports both BMP and JPG from blob field. Easily you can add even GIF support...
Avatar of Wim ten Brink
It seems the JPeG format isn't registered as image type during runtime. A flaw in your libraries perhaps?
ASKER CERTIFIED SOLUTION
Avatar of modulo
modulo

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial