[
  {
    "Id": "1226374",
    "ThreadId": "540055",
    "Html": "This is my code:<br />\n<pre><code>using (var zipFile = String.IsNullOrEmpty(FileName) ? ZipFile.Read((mStream)) : ZipFile.Read(FileName))\n            {\n                ePubActions eas = new ePubActions(zipFile);\n                eas.LoadEpubMetaDataFromOpfFile(eas.opfFilePath);\n\n                foreach (EpubContentItem item in eas.epubContentItems)\n                {\n                    //Every zipEntry needs te be extracted to a stream:\n                    using (MemoryStream stream = new MemoryStream())\n                    {\n                        ZipEntry ze = zipFile[contentItem];\n                        ze.Extract(stream);\n\n... Do some stuff with the extracted file\n\n                        zipFile.RemoveEntry(contentItem);\n                        zipFile.AddEntry(contentItem, newStream);\n                        MemoryStream tempStream = new MemoryStream();\n                        zipFile.Save(tempStream);\n                        tempStream.CopyTo(mStream);\n                     }\n                }\n</code></pre>\n\nNow, when I reach the Extract method for the second time, a System.ServiceModel.FaultException`1' was thrown with the message &quot;Cannot read that as a zipfile&quot; \r<br />\n<br />\nThis only occurs when the zipfile is read from a stream and when I read the zipfile from an actual file.<br />\n",
    "PostedDate": "2014-03-25T03:12:11.197-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "1226385",
    "ThreadId": "540055",
    "Html": "Found the solution myself...\r<br />\n<br />\nI grabbed the save-part for the zipfile and took it out of the for-each loop<br />\n",
    "PostedDate": "2014-03-25T03:46:50.52-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]