Using ZipArchive with ASP.NET Core Web Api
问题 The question is how can I create a zipped (compressed) folder on the fly using ASP.NET Core 2 (currently) Web API? I am using System.IO.Compression.ZipArchive I have been several blog posts where this is done using streams or byte arrays, all give me the same output. I am able to download the zip folder but unable to open it. The zipped folder is the correct size. Even though it doesn't open. They way I want it to work is for a user to click a button which runs this action and return a zipped