DotNetZip - Calculate final zip size before calling Save(stream) in C#
问题 When using DotNetZip, is it possible to get what the final zip file size will be before calling Save(stream)? I have a application(Window Service) where package Stream size is more than 100MB then package will saved and upcoming files add into new package. I got same question for web application but not understand the answer. Is there any way into DotnetZip to find the size of zip stream before save on I/O system? 回答1: I got the solution. Here is code.Now I will create the package which size