[
  {
    "Id": "211446",
    "ThreadId": "62293",
    "Html": "<p>Everything has been working fine until about a day or two ago, where we get:</p>\r\n<p>Exception calling &quot;Save&quot; with &quot;0&quot; argument(s): &quot;An attempt was made to move the<br>&nbsp;file pointer before the beginning of the file.</p>\r\n<p>our code:</p>\r\n<p>&nbsp;</p>\r\n<div style=\"color:Black;background-color:White\">\r\n<pre><span style=\"color:Blue\">function</span> ZipUp-File ( $<span style=\"color:Blue\">file</span>, $zipname )\r\n{\r\nWrite-Output <span style=\"color:#A31515\">&quot;Zipping $file to $zipname&quot;</span>\r\n\r\n<span style=\"color:Green\">#Create new Zip Object</span>\r\n$zipfile =  <span style=\"color:Blue\">new</span>-object Ionic.Utils.Zip.ZipFile($zipname);\r\n<span style=\"color:Green\">#Add the specified file to be zipped</span>\r\n$zipfile.AddFile($<span style=\"color:Blue\">file</span>)\r\n<span style=\"color:Blue\">echo</span> <span style=\"color:#A31515\">&quot;$file zipped successfully&quot;</span>\r\n<span style=\"color:Green\">#Save the archive</span>\r\n$zipfile.Save()\r\n}\r\n</pre>\r\n</div>\r\n<p>&nbsp;Nothing has changed at all. No code changes, no OS changes, nothing.</p>\r\n<p>Any ideas as to what the cause is?</p>\r\n<p>Thanks!</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-07-13T12:30:00.17-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "211511",
    "ThreadId": "62293",
    "Html": "<p>yes, I have seen, and fixed,&nbsp;a similar sounding problem recently.</p>\r\n<p>It happens as files get larger - bad pointer arithmetic inside the library.</p>\r\n<p>I fixed it in v1.8.4.5.</p>\r\n<p>What version of the library are you using?&nbsp;&nbsp; If it is earlier than the latest 1.8, then can I suggest that you get the latest, and retry it?</p>\r\n<p>The problem now is that your zip file may not be valid.&nbsp; All the data is there, but the metadata is not correct - the file offsets for each of the compressed files.&nbsp;&nbsp; You'll have to fix it up, using the new method ZipFile.CheckZip().&nbsp;&nbsp;&nbsp; Call that method, once,&nbsp;on each zip file, using v1.8.4.5.&nbsp; Then you won't have to call it again.&nbsp; For large zip files it will take some time. &nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2009-07-13T15:20:40.543-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "211677",
    "ThreadId": "62293",
    "Html": "<p>I was using 1.6</p>\r\n<p>Using the newest version fixed it. I upgraded and its working like a champ. Thank you so much, especially for the quick reply!</p>",
    "PostedDate": "2009-07-14T04:40:21.94-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]