Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

DBImage - GraphicType JPEG

edited October 2008 in General
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

Comments

  • edited October 2008
    > is there an option to specifiy JPEG as graphictype for a DBImage?

    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
This discussion has been closed.