Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello
i wants such that i can browse folder to the textbox and by saving it the folder should be compressed as per user define sized images to the particular directory.
Posted
Comments
StackQ 15-Dec-12 2:14am    
may i know ur email id? to send complete project of compression or uncompression.
deepakramoliya 15-Dec-12 9:47am    
yes sir. its deepakce1991@gmail.com
StackQ 15-Dec-12 11:14am    
sorry at present i m not in office,so i m unable to send u now,i will send u on monday.Bcoz it's on my office system.
ok,Sure on monday
StackQ 16-Dec-12 23:24pm    
Now check!!!

we have a nice article in CP C# Zip Files and/or Folders[^] check this out for File/Folder Compression.
 
Share this answer
 
use DotNetZip.

Sample code:
C#
using (ZipFile zip = new ZipFile())
{
    zip.AddFile("C:\\file1.docx");
    zip.AddFile("C:\\file2.pdf");
    zip.AddFile("C:\\file3.xlsx");
    zip.Save("C:\\MyZip.zip");
}

http://dotnetzip.codeplex.com/[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900