[
  {
    "Id": "1490040",
    "ThreadId": "660215",
    "Html": "I'm trying to rewrite a C# .NET WinForms app that uses FileStream and BinaryWriter to write individual items to a binary file and FileStream and BinaryReader to read them from that binary file. Now I'm thinking about using DoNetZip to write the items to a .zip file instead.\r<br />\n<br />\nHere's how I wrote them with FileStream/BinaryWriter:<br />\n<pre><code>    private void WriteToBinary(string filepath)\n    {\n        FileStream fs = new FileStream(filepath, FileMode.Create, FileAccess.Write);\n        BinaryWriter bw = new BinaryWriter(fs);\n\n        bw.Write(SomeString);\n        bw.Write(SomeInteger);\n        bw.Write(SomeBoolean);\n        bw.Write.(SomeJPGImageInBase64String();\n        bw.Write(SomeMP3InBase64);\n\n        fs.Close();\n        bw.Close();\n    }\n\n</code></pre>\n\nNow here's what I'd like to do:<br />\n<pre><code>    private void ZipItAll(string filepath)\n    {\n        Create a new instance of Ionic.Zip or some other zip method;\n        Add SomeString to it;\n        Add SomeInteger to it;\n        Add SomeBoolean to it;\n        Add SomeJPGImageInBase64String to it;\n        Add SomeMP3InBase64String to it;\n        Write the whole thing to a .zip file;\n        Call it a day;\n    }\n</code></pre>\n\nDoes DotNetZip have functionality to support the step-by-step outlined in ZipItAll()? I want to add individual items one by one and then save the whole thing to a .zip file. The only code examples I can find are where whole files are added one by one instead of individual items.<br />\n",
    "PostedDate": "2016-12-18T16:12:21.427-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]