[
  {
    "Id": "225773",
    "ThreadId": "66457",
    "Html": "<p>I was wondering if there's a way to display files from the zip without actually extracting them, for example, I click on a picture file in the list and it sets the picturebox control as the image I've selected in the zip.</p>\r\n<p>Would I have to load this file into the memory or something? And how would I do this?</p>\r\n<p>Thanks!</p>",
    "PostedDate": "2009-08-20T02:00:15.16-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "225888",
    "ThreadId": "66457",
    "Html": "<p>Yes, you can enumerate the entries in a zipfile without extracting them.</p>\r\n<pre>using (var zip = ZipFile.Read(&quot;Whatever.zip&quot;))\r\n{\r\n    foreach (ZipEntry e in zip)\r\n    {\r\n        // here you can do what you like with the entry.\r\n        // you need not extract the entry.\r\n    }\r\n}</pre>\r\n<p>To display the contents of the entry, you would need to read the zipentry content into memory, or extract the entry to create a filesystem file that contains the content.&nbsp; If it's an image, you could just read in the data via a stream using ZipEntry.OpenReader().&nbsp; Then, there are ways to create an image using the contents of a stream or byte array.&nbsp; Depending on which framework you're targeting - WinForms, WPF, ASPNET - there are different ways to do this.&nbsp; I'll let you <a href=\"http://www.bing.com/search?q=.NET+Image+&quot;byte+array&quot;+fromstream&form=QBRE&qs=n\">figure that out</a>.</p>\r\n<p>That takes care of the image-type file.&nbsp; For other file types (Word documents, text files, whatever) you'd have to do something similar I guess.</p>",
    "PostedDate": "2009-08-20T07:52:25.843-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "225980",
    "ThreadId": "66457",
    "Html": "<p>Yay! Thank you so much! I'm going to mess around with that later tonight, oh and I'm using WinForms.</p>\r\n<p>This information is extremely useful for what I'm making, thanks!</p>",
    "PostedDate": "2009-08-20T11:50:36.727-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]