[
  {
    "Id": "1327092",
    "ThreadId": "573464",
    "Html": "Hi there,<br />\n<br />\nI wanted to update a zip with the following code :<br />\n<pre><code>FileStream input = new FileStream(destination, FileMode.Open, FileAccess.ReadWrite);\n//destination is the string with the path to the zip\n\nusing (ZipFile z = ZipFile.Read(input))\n         {\n             z.UpdateItem(@&quot;C:\\Data\\test.odt&quot;);\n             z.Save();\n         }</code></pre>\n\nThe problem is that the save-method overwrites the original zip. I tried replacing save() with save(outputStream) and save(destination), but both times the zip to update is overwritten. Do you have any suggestions how I can make this work.<br />\n<br />\nthanks in advance<br />\n<br />\nMadome31<br />\n",
    "PostedDate": "2014-11-28T10:05:30.75-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "1327312",
    "ThreadId": "573464",
    "Html": "Hi,\r<br />\n<br />\nI figured out the Problem, I just changed the code to this : <br />\n<pre><code>\n           FileStream input = new FileStream(destination, FileMode.Open, FileAccess.ReadWrite);\n           //destination is the string with the path to the zip\n            using (ZipFile z = ZipFile.Read(input))\n            {\n                z.AddFile(@&quot;C:\\Data\\test.odt&quot;);\n                z.Save(destination);\n            }</code></pre>\n\nI hope it helps.\r<br />\n<br />\nMadome<br />\n",
    "PostedDate": "2014-11-29T23:34:05.437-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]