How to zip multiple files using only .net api in c#

前端 未结 9 1267
灰色年华
灰色年华 2020-12-01 09:04

I like to zip multiple files which are being created dynamically in my web application. Those files should be zipped. For this, i dont want to use any third-party tools. jus

9条回答
  •  挽巷
    挽巷 (楼主)
    2020-12-01 09:46

    I'm not sure what you mean by not wanting to use thrid party tools, but I assume its that you don't want some nasty interop to programmatically do it through another piece of software.

    I recommend using ICSharpCode SharpZipLib

    This can be added to your project as a reference DLL and is fairly straightforward for creating ZIP files and reading them.

提交回复
热议问题