Home End User

GIF loading Reportbuilder DBIMAGE Component.

edited October 2002 in End User
Hello again..

In other word.. How is the best way to save GIF image in BLOB field that can
be retrieved from TDBImage Component of Reportbuilder. ?

Comments

  • edited October 2002
    Hi Ricardo,

    there is nothing special with storing/restoring GIFs in BLOBs, use 'TBlobStream' or any descendant.


    ---------------------------------------------------------------------
    Article: ReportBuilder Image Support
    ---------------------------------------------------------------------

    ReportBuilder natively supports .bmp, .jpeg, .wmf, .ico image formats.

    ReportBuilder has an open architecture that supports any TGraphic
    descendant.

    For example, ReportBuilder ships with a freeware component called
    GIFImage that can be used with ReportBuilder to print .gif images. (see
    the main report demo app for an example.)

    There is another freeware component called GraphicEx that
    supports several additional formats - including tiff, targa, and
    autodesk.

    It can be downloaded from:

    http://www.lischke-online.de/Graphics.html


    ReportBuilder can easily support TGraphic descendants
    with a simple register call.

    Below is the code to our ppGIF.pas unit which
    'uses' and registers the freeware GIFImage component.


    {********************************************************************}
    { }
    { ReportBuilder Report Component Library }
    { }
    { Copyright (c) 1996, 2000 Digital Metaphors Corporation }
    { }
    {********************************************************************}

    unit ppGIF;

    interface

    {$I ppIfDef.pas}

    uses
    ppCtrls, GIFImage;

    implementation

    {***************************************************************
    *
    ** I N I T I A L I Z A T I O N / F I N A L I Z A T I O N
    *
    {****************************************************************}

    initialization

    ppRegisterGraphicClass('GIF', TGIFImage);

    finalization

    ppUnRegisterGraphicClass(TGIFImage);

    end.



    regards,
    Chris Ueberall;
This discussion has been closed.