{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "not a bug&#63; ",
    "ClosedDate": "2011-06-20T11:46:01.03-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "I am looking at the DotNetZip library and using it for the first time. I am using Ionic.Zip.dll dated 18.5.2010 11:15 v1.9 with VS 2008 c# project. I am compiling to .NET 3.5 The dll was extracted from the DotNetZipLib-Runtime-v1.9.zip file downloaded today, and added as a reference into my project.\n \nI have been playing with various compression libraries to store an SQL backup from a stream. So this gets quite big. This is the 4th open library I am testing. One key benefit of this one is the ability to password protect the file.\n \nMy function contains the following code:\n \n...\n \nMemoryStream myStream = new MemoryStream();\n \nDataBackup.Backup(myStream); //DataBackup is my object pointing to my SQL database and Backup is a method that puts the backup SQL script into a stream\n \nZipFile zip = new ZipFile(); zip.AddEntry(\"README.TXT\", \"Backup added to zip at \" + System.DateTime.Now.ToString(\"G\"));\n \nZipEntry e = zip.AddEntry(\"backup.dump\", myStream);\n \ne.Comment = \"Backup added to zip at \" + System.DateTime.Now.ToString(\"G\");\n \nzip.Save(\"test.zip\"); // It is at this line that I get an error\n \nI have used the same technique with the ZipPackage and the GZipStream on the same db with no problem in creating the file from the same stream. The uncompressed backup stream is 1,922,470,016 bytes in length (according to the debugger). My largest test with the other libraries so far is 223Mb.\n \nI did note in the documentation an example line\n \nZipEntry e= zip.AddEntry(\"Content-From-Stream.bin\", \"basedirectory\", StreamToRead);\n \nThis line construct will not compile in my environment. I don't know if I am trying to do something it is not designed for, or that it cannot handle large stream files, or if I need to set another parameter.\n \nI have played with a few properties but to no avail.\n \nThe library is great, and I guess I am pushing the use of a stream. But then again, if I don't push, I don't learn. And where's the fun in not learning.",
    "LastUpdatedDate": "2013-05-16T05:31:48.907-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2010-05-18T04:41:40.277-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "\"Attempting to divide by zero\" error using runtime lib zip",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 10897
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "I knew after writing this my brain would wake up.\r\nUnlike the other libraries the AddEntry doesn't reset the position of the stream on where to read from. This may be useful under some circumstances.\r\nThe system worked when adding the line\r\nmyStream.position = 0;\r\non the line before the AddEntry.\r\nSuperb library. Shame I can't say the same about all its users. Thanks.",
      "PostedDate": "2010-05-18T04:52:06.84-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2011-06-20T11:46:01.03-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:43:32.58-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:31:48.907-07:00",
      "Id": -2147483648
    }
  ]
}