//using Ionic.Zip;
//take one file upload control and click event write
if (FileUpload1.HasFile)
{
String TargetDirectory = FileUpload1.PostedFile.FileName;
using (Ionic.Zip.ZipFile zip1 = Ionic.Zip.ZipFile.Read(TargetDirectory))
{
zip1.ExtractAll(Server.MapPath("UploadFile")
, Ionic.Zip.ExtractExistingFileAction.OverwriteSilently);
}
}
Showing posts with label Take one zip folder and Unzip the file using Ionic Zip Dll. Show all posts
Showing posts with label Take one zip folder and Unzip the file using Ionic Zip Dll. Show all posts
Monday, February 21, 2011
Subscribe to:
Posts (Atom)