Create Zip archive from multiple in memory files in C#

后端 未结 8 1900
情话喂你
情话喂你 2020-12-13 02:06

Is there a way to create a Zip archive that contains multiple files, when the files are currently in memory? The files I want to save are really just text only and are stor

8条回答
  •  醉梦人生
    2020-12-13 03:08

    Yes, you can use SharpZipLib to do this - when you need to supply a stream to write to, use a MemoryStream.

提交回复
热议问题