{
  "WorkItem": {
    "AffectedComponent": {
      "Name": "",
      "DisplayName": ""
    },
    "ClosedComment": "This is a question, not a workitem.",
    "ClosedDate": "2009-09-18T12:09:16.047-07:00",
    "CommentCount": 0,
    "Custom": null,
    "Description": "DotnetZip, v1.8 last build.\n \nMemoryStream compress and save didn't work.\n \nOrjinal Byte Size : 849408 byte.\nCompressed Size: 3884 byte.  => Wrong !!!!\n \nI'm thinking this is a bug !\n \nCode Under; \n************************\n \n        public byte[] Compress(byte[] Data, int Index, int Count, Zlib.CompressionLevel Level, string Password)\n        {\n            MemoryStream outStream = new MemoryStream();\n \n            using (ZipFile zip = new ZipFile())\n            {\n                byte[] tmpArr = new byte[Count];\n                Array.Copy(Data, Index, tmpArr, 0, Count);\n \n                MemoryStream inStream = new MemoryStream(tmpArr);\n                inStream.Position = 0;\n \n                ZipEntry item = zip.AddEntry(tmpFileName, null, inStream);\n \n                if (!String.IsNullOrEmpty(Password))\n                {\n                    zip.Password = Password;\n                    zip.Encryption = EncryptionAlgorithm.PkzipWeak;\n                }\n \n                zip.CompressionLevel = Level;\n                zip.Save(outStream);\n            }\n \n            byte[] tmp2 = new byte[outStream.Length];\n            Array.Copy(outStream.GetBuffer(), 0, tmp2, 0, outStream.Length);\n \n            return tmp2;\n        }",
    "LastUpdatedDate": "2013-05-16T05:32:08.337-07:00",
    "PlannedForRelease": "",
    "ReleaseVisibleToPublic": false,
    "Priority": {
      "Name": "Low",
      "Severity": 50,
      "Id": 1
    },
    "ProjectName": "DotNetZip",
    "ReportedDate": "2009-09-16T08:18:19.947-07:00",
    "Status": {
      "Name": "Closed",
      "Id": 4
    },
    "ReasonClosed": {
      "Name": "Unassigned"
    },
    "Summary": "MemoryStream compress and save didn't work. (v1.8 last build.)",
    "Type": {
      "Name": "Issue",
      "Id": 3
    },
    "VoteCount": 1,
    "Id": 8795
  },
  "FileAttachments": [],
  "Comments": [
    {
      "Message": "I think this is question, not a workitem.\r\n\r\nWhy do you think this is a bug?  Have you tried to verify the compression?  The way to do it is, to unzip and compare the original data to the unzipped data.  If they are the same then the compression worked. \r\n\r\nYou cannot judge the success of the compression solely by the size of the data.  How small is too small?  You need to verify the compression in practice.  \r\n\r\nI'm closing this as a workitem,.  Happy to discuss this on the discussion forums. If through that discussion, we find a problem in DotNetZIp, I'll open a workitem for it. \r\n\r\nThanks\r\n",
      "PostedDate": "2009-09-18T12:09:02.06-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2009-09-18T12:09:16.047-07:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-02-21T18:44:00.923-08:00",
      "Id": -2147483648
    },
    {
      "Message": "",
      "PostedDate": "2013-05-16T05:32:08.337-07:00",
      "Id": -2147483648
    }
  ]
}