i have tried below code, and it is creating zip file . but the problem is when i unzip it , i have seen that it is saving my file (csv file) but with all root folder. i just want that when i unzip my zip file, there should be only csv file , not all root folder.
ZipFile zipFile = new ZipFile();
zipFile.CompressionLevel = Ionic.Zlib.CompressionLevel.BestCompression;
zipFile.Password = "password";
var imagePath = Server.MapPath("~/Content/Report.csv");
zip.AddFile(imagePath, string.Empty);
var saveToFilePath = HttpContext.Current.Server.MapPath("~/Report.zip");
zipFile.Save(saveToFilePath);
Can anyone please help me .?