Saving archive as a stream
I am saving my reports as archive to an archivefile, and then loading the
archive file into a FileStream to then load it into a BLOB that is inserted
into the database. This works fine.
Is there a way to save the archive as a Stream rather than a file? (it would
save me 2 steps!)
G
archive file into a FileStream to then load it into a BLOB that is inserted
into the database. This works fine.
Is there a way to save the archive as a Stream rather than a file? (it would
save me 2 steps!)
G
This discussion has been closed.
Comments
since you've already done the code, this wouldn't save you 2 steps.
Some milli seconds of execution time could be saved, but you have to change
your code.
(If you don't reuse code, you can indeed save that 2 steps, but then you
should better think about code reusing). :-)
regards,
Chris Ueberall;
inserted
would
change
well Ok - but just to humor my curiosity - it would be nice if I did not
have to save the archive to a file on the harddrive and then read the
harddrive file back into a FileStream, but instead I could save the archive
file directly into a TMemoryStream. Is there a way to do that?
Isn't that a little dangerous asking me, the user, to think ? - and anyways
I didn't know humor was allowed on this newsgroup
archive
Unfortunately there is currently no way. (... if you don't want to write
your own Archive device).
anyways
Sure :-)
It isn't allowed for the normal users (see NG-rule 42 ff), but for team
members on Thursday.
(You can order the rules book, please contact sales@digital-metaphors).
Cheers,
Chris Ueberall;
Rule #89, you'll see that there is an addendum stating that users may post
humor on the EndUser NG on Tuesdays, Fridays and Christmas Eve. All users
will have to run the joke through our QA app (we have high standards) by
sending a request to funnyfilter@digital-metaphors.com.
Order the rules book, it's some good reading. I think is currently on sale
for $29.95 US. Makes a great gift for friends and relatives. It also fits
right in on the coffee table:)
Cheers,
Jim Bennett
Digital Metaphors
http://www.digital-metaphors.com
info@digital-metaphors.com