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

Loading ArchiveReader file from a DataBase

edited January 2002 in General
I'm wanting to store a series of reporst that are archive files into a
database, is there anyway I can read these files straight from the database
into the ArchiveReader without having to save them to disk first??

Thanks

John.

Comments

  • edited January 2002
    The current archive reader is intended to wotk with file based archives.
    You'll have to create an archive reader descendent which can do this.
    Internally, the archive reader expects a binary stream in the correct
    format. Since you can pull the blob field from the db into a blob stream,
    then it shouldn't be tto much effort to get it to work in a descendent
    archive reader.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited February 2002
    Could you give me a real big hint as to where I insert the stream into the
    archive reader.

    Thanks

    John.


  • edited February 2002
    Looks like descending from the reader is out, because a couple of methods
    are private. Copy and rename TppArchiveReader into a new unit. You should
    be able to add a property to the class so that you can assign a TBlobField.
    Then change the Filestream private variable to a Blobstream. Create the
    blobstream using your blobfield, and then you should be able to use the rest
    of the archive reader in the same way. It just happens to be reading from a
    blobstream instead of a filestream, internally.

    Cheers,

    Jim Bennett
    Digital Metaphors Corp



  • edited February 2002
    I can do that.

    Is there anychance that the next version might have this added so I dont
    have to continously update my "new" component.

    thnx

    John.

  • edited February 2002
    We'll look into changing the TppArchiveReader (file based) so that you can
    descend from it and create a TppStreamArchiveReader more easily.


    Cheers,

    Jim Bennett
    Digital Metaphors

This discussion has been closed.