How would I basically use ZipFile.CreateFromDirectory
to send back zipfile to memory stream instead of a output path.
Or would I have to use ZipArchive
and generate the zip file myself? Seems kind of odd there isn't a method for stream.
Here's basically what I'm trying to do
using (MemoryStream ms = new MemoryStream())
{
ZipFile.CreateFromDirectory(path, ms)
buf = ms.ToArray();
LogZipFile(path, filesize, buf.LongLength);
}