WPF利用sharpziplib进行多文件压缩
1、将生成的压缩包保存在内存中:
public byte[] MultiZip(string[] srcFiles, string password)
{
byte[] result = null;
using (MemoryStream ms = new MemoryStream())
{
using (ZipOutputStream zipstream = new ZipOutputStream(ms))
{
if (!string.IsNullOrEmpty(password))
zipstream.Password = passwo