[
  {
    "Id": "118766",
    "ThreadId": "35740",
    "Html": "Hello.<br>\r\n<br>\r\nI would like to update docx file as zip.<br>\r\nThe zip file breaks only in Save(). <br>\r\n<br>\r\nIs the mistake found in my procedure?<br>\r\n<br>\r\nI have not called UpdateItem() yet. <br>\r\n<br>\r\n1.5 DotNetZip Library<br>\r\n<br>\r\n--- 1:ok ---<br>\r\nusing(ZipFile zip = new ZipFile(&quot;tmp.zip&quot;)){<br>\r\n&nbsp;&nbsp; &nbsp;zip.AddFile(&quot;tmp.xml&quot;);<br>\r\n&nbsp;&nbsp; &nbsp;zip.Save();<br>\r\n}<br>\r\n<br>\r\n--- 2:why can not ? ---<br>\r\nstring outx = &quot;out.docx&quot;;<br>\r\nFile.Copy(@&quot;a.docx&quot;, outx, true);<br>\r\n<br>\r\nusing(ZipFile zip = new ZipFile(outx)){<br>\r\n&nbsp;&nbsp; &nbsp;zip.Save();<br>\r\n}<br>\r\n<br>\r\n% unzip -l a.docx<br>\r\nArchive:&nbsp; a.docx<br>\r\n&nbsp;Length&nbsp;&nbsp;&nbsp; Date&nbsp;&nbsp;&nbsp; Time&nbsp;&nbsp;&nbsp; Name<br>\r\n&nbsp;------&nbsp;&nbsp;&nbsp; ----&nbsp;&nbsp;&nbsp; ----&nbsp;&nbsp;&nbsp; ----<br>\r\n&nbsp;&nbsp; 1312&nbsp; 01-01-80&nbsp; 00:00&nbsp;&nbsp; [Content_Types].xml<br>\r\n&nbsp;&nbsp;&nbsp; 590&nbsp; 01-01-80&nbsp; 00:00&nbsp;&nbsp; _rels/.rels<br>\r\n&nbsp;&nbsp;&nbsp; 817&nbsp; 01-01-80&nbsp; 00:00&nbsp;&nbsp; word/_rels/document.xml.rels<br>\r\n12845554&nbsp; 09-16-08&nbsp; 12:05&nbsp;&nbsp; word/document.xml<br>\r\n&nbsp;&nbsp; 6990&nbsp; 01-01-80&nbsp; 00:00&nbsp;&nbsp; word/theme/theme1.xml<br>\r\n&nbsp;&nbsp;&nbsp; 403&nbsp; 01-01-80&nbsp; 00:00&nbsp;&nbsp; word/_rels/settings.xml.rels<br>\r\n&nbsp;&nbsp; 2788&nbsp; 01-01-80&nbsp; 00:00&nbsp;&nbsp; word/settings.xml<br>\r\n&nbsp;&nbsp; 1634&nbsp; 01-01-80&nbsp; 00:00&nbsp;&nbsp; word/fontTable.xml<br>\r\n&nbsp;&nbsp;&nbsp; 764&nbsp; 01-01-80&nbsp; 00:00&nbsp;&nbsp; docProps/app.xml<br>\r\n&nbsp; 21026&nbsp; 09-03-08&nbsp; 15:15&nbsp;&nbsp; word/styles.xml<br>\r\n&nbsp;&nbsp;&nbsp; 793&nbsp; 01-01-80&nbsp; 00:00&nbsp;&nbsp; docProps/core.xml<br>\r\n&nbsp;&nbsp;&nbsp; 260&nbsp; 01-01-80&nbsp; 00:00&nbsp;&nbsp; word/webSettings.xml<br>\r\n&nbsp;------&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; -------<br>\r\n12882931&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 12<br>\r\n<br>\r\n% unzip -l out.docx<br>\r\nArchive:&nbsp; out.docx<br>\r\n&nbsp;Length&nbsp;&nbsp;&nbsp; Date&nbsp;&nbsp;&nbsp; Time&nbsp;&nbsp;&nbsp; Name<br>\r\n&nbsp;------&nbsp;&nbsp;&nbsp; ----&nbsp;&nbsp;&nbsp; ----&nbsp;&nbsp;&nbsp; ----<br>\r\n&nbsp;&nbsp; 1312&nbsp; 01-01-80&nbsp; 00:00&nbsp;&nbsp; [Content_Types].xml<br>\r\nerror:&nbsp; expected central file header signature not found (file #1).<br>\r\n&nbsp; (please check that you have transferred or created the zipfile in the<br>\r\n&nbsp; appropriate BINARY mode and that you have compiled unzip properly)<br>\r\n<br>\r\n",
    "PostedDate": "2008-09-16T01:53:05.493-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "118941",
    "ThreadId": "35740",
    "Html": "This is a bug!&nbsp; I've entered workitem 6182 and I've fixed it.&nbsp;&nbsp; The fix is in the latest v1.6 preview release.<br>\r\n",
    "PostedDate": "2008-09-16T13:38:05.98-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "118993",
    "ThreadId": "35740",
    "Html": "1.6.1.7 DotNetZip Library:<br>\r\nIt looks seem good. <br>\r\nZipFile#UpdateFiles operated correctly, too. <br>\r\n<br>\r\nthanx.<br>\r\n<br>\r\n<br>\r\n",
    "PostedDate": "2008-09-16T18:51:37.247-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]