[
  {
    "Id": "285363",
    "ThreadId": "83034",
    "Html": "<p>Hi Cheeso</p>\r\n<p>Just wondering if this is possible, i have a text file which is zipped in a zipfile.</p>\r\n<p>I need to extract the text from the zipentry.</p>\r\n<p>Are there any methods which would do that.</p>\r\n<p>Thanks</p>\r\n<p>N</p>",
    "PostedDate": "2010-02-03T08:53:37.247-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "285471",
    "ThreadId": "83034",
    "Html": "<p>ZipEntry.OpenReader will do it.</p>",
    "PostedDate": "2010-02-03T13:06:33.75-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "285680",
    "ThreadId": "83034",
    "Html": "<p>Hi Cheeso</p>\r\n<p>It returns a CrcCalculatorStream. I am wondering how to get the text/string from a zipentry.</p>\r\n<p>Thanks</p>\r\n<p>N</p>",
    "PostedDate": "2010-02-04T01:47:24.593-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "285730",
    "ThreadId": "83034",
    "Html": "<p>It's a stream;&nbsp; you read all the bytes from the stream, then convert the bytes to a string using the encoding required.</p>\r\n<p>For example</p>\r\n<div style=\"color:Black;background-color:White\">\r\n<pre><span style=\"color:Blue\">var</span> stream = entry.OpenReader();\r\n<span style=\"color:Blue\">byte</span>[] b = <span style=\"color:Blue\">new</span> <span style=\"color:Blue\">byte</span>[entry.UncompressedSize];\r\nstream.Read(b,0,b.Length);\r\n<span style=\"color:Blue\">var</span> <span style=\"color:Blue\">string</span> = System.Text.Encoding.ASCII.GetString(b);\r\n</pre>\r\n</div>\r\n<p>You need to know which encoding to use.</p>\r\n<p>If you prefer, you can Extract to a MemoryStream, something like this:</p>\r\n<div style=\"color:Black;background-color:White\">\r\n<pre><span style=\"color:Blue\">var</span> ms = <span style=\"color:Blue\">new</span> MemoryStream();\r\nentry.Extract(ms);\r\n<span style=\"color:Blue\">var</span> <span style=\"color:Blue\">string</span> = System.Text.Encoding.ASCII.GetString(ms.ToArray());\r\n\r\n</pre>\r\n</div>",
    "PostedDate": "2010-02-04T04:08:17.263-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "285735",
    "ThreadId": "83034",
    "Html": "<p>Thanks Cheeso.</p>",
    "PostedDate": "2010-02-04T04:15:38.957-08:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]