[
  {
    "Id": "636773",
    "ThreadId": "263766",
    "Html": "\r\n<p>Hi,</p>\r\n<p>I am currently using ZipOutputStream is zip up files, but when I do, it includes all of the root directoried in the zip file. I do I get it to not do this?</p>\r\n<p>I saw a similar post about this, but the OP was&nbsp;using&nbsp;the AddFile method, which I am not. Is there any solution to this when using ZipOutputStream?</p>\r\n<p>&nbsp;</p>\r\n<p>Thanks</p>\r\n",
    "PostedDate": "2011-07-03T18:44:14.057-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "637237",
    "ThreadId": "263766",
    "Html": "<p>ZipOutputStream.PutEntry() accepts a path, which is encoded into the zipfile.&nbsp; To do what you want, change the path you pass to PutEntry().</p>\r\n<p>You do not need to use the same path in PutEntry() that you use when calling File.Open() to read the file in the filesystem.</p>\r\n<p>For example you could read a file via File.Open() at \"c:\\documents\\July2011\\Report1.xls\" and put an entry in a zipfile called \"\\backup\\Report.xls\".&nbsp;</p>\r\n<p>&nbsp;</p>",
    "PostedDate": "2011-07-04T18:45:42.32-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]