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??
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.
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.
Comments
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
http://www.digital-metaphors.com
info@digital-metaphors.com
archive reader.
Thanks
John.
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
http://www.digital-metaphors.com
info@digital-metaphors.com
Is there anychance that the next version might have this added so I dont
have to continously update my "new" component.
thnx
John.
descend from it and create a TppStreamArchiveReader more easily.
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com