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

Saving archive as a stream

edited August 2001 in General
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

Comments

  • edited August 2001
    Hi Gerald,

    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
  • edited August 2001
    > since you've already done the code, this wouldn't save you 2 steps.
    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
  • edited August 2001
    Hi Gerald,

    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;
  • edited August 2001
    Humor isn't allowed, most of the time:) If you look at sub paragraph C of
    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
This discussion has been closed.