DBImage - GraphicType JPEG
Hi,
For a application we store photographs of parts in a database, the image is
stored in JPEG format.
When we create a report and want to print the photo on a report, there will
raise an exception that the field isn't a correct Bitmap. These exception
makes sense, but is there an option the specifiy JPEG as graphictype for a
DBImage field. I have looked trough the sourcefiles and found an unit to
register JPEG as a type. ppJPEG.pas, but I can't figure out how to enable
JPEG support on DBImage
Version info:
Delphi 2005
Reportbuilder 11.0
Firebird Database - Photo is a Blobfield
Best Regards,
Vincent Schuurhuis
Maneffic Solutions
For a application we store photographs of parts in a database, the image is
stored in JPEG format.
When we create a report and want to print the photo on a report, there will
raise an exception that the field isn't a correct Bitmap. These exception
makes sense, but is there an option the specifiy JPEG as graphictype for a
DBImage field. I have looked trough the sourcefiles and found an unit to
register JPEG as a type. ppJPEG.pas, but I can't figure out how to enable
JPEG support on DBImage
Version info:
Delphi 2005
Reportbuilder 11.0
Firebird Database - Photo is a Blobfield
Best Regards,
Vincent Schuurhuis
Maneffic Solutions
This discussion has been closed.
Comments
1. Include ppJPEG in the 'uses' clause of your application. This will
register the RB JPEG support.
2. Set TppDBImage.GraphicType to 'JPEG'
--
Nard Moseley
Digital Metaphors
www.digital-metaphors.com
Best regards,
Nard Moseley
Digital Metaphors
www.digital-metaphors.com