c# - Appending Streams with SevenSharpZip -
i've been knocking head on 2 days. we're using 7zipsharp create .7z files several source files (incoming emails in fact). in order optimize application, want avoid hard disk access switched compressstreams function family. the code using filenames instead of streams works perfectly. when switching streams, "keynotfoundexception", when compressionmode = append. my test code: for (var = 0; < numfiles; i++) { //if(i > 0) // compressor.compressionmode = compressionmode.append; console.writeline("adding copy num " + (i + 1) + " archive"); sevenziputil.addstream(file.openread(samplefile), "email-" + + ".eml", outfile); } helper method code: public static void addstream(stream instream, string filename, string destinationfile) { sevenzipcompressor comp = new sevenzipcompressor(); comp.archiveformat =...