[
  {
    "Id": "89511",
    "ThreadId": "26760",
    "Html": "\r\nI am using this excellent code to zip a file, which is then uploaded to a server and upzipped on the server. I am having problems in that the zipped file seems to carry the path information with it, and unattended unzipping in a totally different environment does not work.<br /><br />The code for zipping is <br /><br />            //compress (zip) the file to speed transfer<br />            //don't foget to unzip on site<br />            //also store on site in zip format for archive<br />            Ionic.Utils.Zip.ZipFile zfile = new ZipFile(\"Data.zip\");<br />            zfile.AddFile(localfile);<br />            zfile.Save(\"Data.zip\");<br /><br />and the code on the server (WS2003) is <br /><br />protected void Page_Load(object sender, EventArgs e)<br />    {<br />        string appath = Request.PhysicalApplicationPath;<br />        Ionic.Utils.Zip.ZipFile zfile = new ZipFile(appath + \"/data/Data.zip\");<br />        //unzip the file<br />        zfile.Extract( appath + \"/data/Data.mdb\");<br />        ....................<br /><br />Any help in making this work would be greatly appreciated<br />Many Thanks<br />",
    "PostedDate": "2008-04-28T21:31:45.297-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  },
  {
    "Id": "97449",
    "ThreadId": "26760",
    "Html": "There is an override method that allows you to specify the directory path for entries as you add them to the ZipFile. <br>\r\nCheck the doc! <br>\r\n<br>\r\nAddFile(Filename, DirectoryInArchive); <br>\r\n<br>\r\nif you want the entry to be in the top-level dir in the archive, do this: <br>\r\nAddFile(Filename, &quot;&quot;); <br>\r\n<br>\r\n",
    "PostedDate": "2008-06-07T16:19:36.08-07:00",
    "UserRole": null,
    "MarkedAsAnswerDate": null
  }
]