Hope doing well,
i am having one subfolder in folder in the server which i am trying to compress and download.
here is my code:
string subfol = Session["inbpostedfol"].ToString();
string fullpath = Server.MapPath("~/InboxFiles/" + subfol);
FileInfo flie = new FileInfo(fullpath);
Response.ContentType = "application/zip";
Response.AddHeader("content-disposition", "attachment; filename=" + subfol + ".zip");
using (ZipFile zipfile = new ZipFile())
zipfile.AddSelectedFiles("*.*", subfol, fullpath);
but not getting the file in compressed folder.
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)