//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);
}
}
Monday, February 21, 2011
Subscribe to:
Posts (Atom)