This is very simple to create a zip file and extract this through .net framework,Many developers where using third party components like DotnetZip
Zip is one of the most accepted archive file formats. Zip format is supported in almost all operating systems with some built-in name.
The first step is you need to reference two namespaces:
If you wish to unzip, you can use the
Zip is one of the most accepted archive file formats. Zip format is supported in almost all operating systems with some built-in name.
- In Windows operating system it’s implemented by the name “Compressed folders”.
- In MAC OS it’s implemented by the name “Archive utility”.
System.IO.Compression
.The first step is you need to reference two namespaces:
System.IO.Compression.FileSystem
System.IO.Compression
CreateFromDirectory
function as shown below.ZipFile.CreateFromDirectory(@"D:\data",@"D:\data.zip");
ExtractToDirectory
function as shown in the below code.ZipFile.ExtractToDirectory(@"D:\data.zip", @"D:\data\unzip");
Excellent information on your blog, Thank you for taking the time to share with us. Amazing insight you have on this. It’s nice to find a website that details so much information.
ReplyDeletebest .net training
Dot net training
I blog quite often and I really appreciate your information. Your article has truly peaked my interest. I am going to bookmark your site and keep checking study for new details about once a week.
ReplyDeleteDot Net Training in Chennai | Dot Net Training in anna nagar | Dot Net Training in omr | Dot Net Training in porur | Dot Net Training in tambaram | Dot Net Training in velachery