Click here to Skip to main content
15,886,664 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:

how cane reduce size for any file using C# windows form
Posted
Comments
Sergey Alexandrovich Kryukov 21-Nov-12 18:36pm    
File size and Form? Don't mix different things in one pile. Ever heard of separation of concerns?
--SA

1 solution

Please see my comment to the question. It's not clear what do you mean by "reduce" here, but you should understand that most files can be effectively compressed in smaller size in a lossless way:
http://en.wikipedia.org/wiki/Lossless_compression[^].

If could be, among many other algorithms, Deflate, GZip or ZIP. Please see:
http://msdn.microsoft.com/en-us/library/system.io.compression.aspx[^].

For working with ZIP, you can use #ziplib:
http://www.icsharpcode.net/opensource/sharpziplib/[^].

Another option is using SevenZipSharp, a .NET wrapper of the famous 7-Zip:
http://en.wikipedia.org/wiki/7-Zip[^],
http://sevenzipsharp.codeplex.com/[^].

Both ZIP libraries are open-source.

—SA
 
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