how do I zip multiple files using GZipStream in c#

后端 未结 2 879
逝去的感伤
逝去的感伤 2021-01-03 11:59

I have created multiple csv files using datatable and want to zip all those file into one single zip file. Which is i\'m doing all at dynamically.

I tried following

2条回答
  •  挽巷
    挽巷 (楼主)
    2021-01-03 12:12

    You can't do this with a GZipStream. You'll need a 3rd party library. Probably the best one out there is SharpZipLib. I've used this on projects in the past, and it's very easy to use. Plus it's been around for a while so should be pretty stable and bug-free.

提交回复
热议问题