I hope it's just a momentary blindness, but I can't get it.
I need to upload files (large files also) using an Upload(Stream) interface, it's quite simple with:
Now, before upload I have to compress and encrypt the file / stream. The only way I can find is:
System.IO.Stream stream = new MemoryStream();
SevenZipCompressor zz = new SevenZipCompressor();
but this loads the whole file in memory. Is any other way? something like Upload(Compress(File.OpenRead(.... ?