TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Rajesh Dintakurthi
NA
274
12.1k
How to compress the folder? and download the zip file
Aug 9 2018 9:00 AM
protected void Submit_Click(object sender, EventArgs e)
{
string path = Server.MapPath("~/images/");//Location for inside Test Folder
string[] Filenames = Directory.GetFiles(path);
using (ZipFile zip = new ZipFile())
{
zip.AddFiles(Filenames, "Project");//Zip file inside filename
zip.Save(@"C:\Users\user\Desktop\Projectzip.zip");//location and name for creating zip file
}
}
Reply
Answers (
1
)
Asynchronous Methods
LDAP Connection to fetch records