Click here to Skip to main content
12,243,303 members (55,210 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# C#4.0
Please help to me
Aboute this program?
how to reduce file size from mb to kb + by c#
Example create a program like winrar.

[edit]SHOUTING removed - OriginalGriff[/edit]
Posted 18-Nov-12 21:41pm
arh66678
Edited 18-Nov-12 21:56pm
v2
Comments
OriginalGriff 19-Nov-12 2:56am
   
DON'T SHOUT. Using all capitals is considered shouting on the internet, and rude (using all lower case is considered childish). Use proper capitalisation if you want to be taken seriously.
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Use ICSharpCode.SharpZipLib.dll. You can find it on web.
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 2

Start reading here: http://en.wikipedia.org/wiki/Data_compression[^] - it provides a good overview. The follow the links - they go to more involved explanations of the various methods.

Then when you have decided what kind of compression you need, you can start implementing them.

But don't expect this to be a simple process. WinRar and WinZip pout a lot of research into this, and many files are already compressed, so significant gains becomes very difficult to achieve.

Alternatively, you could use zSharpLib: http://www.icsharpcode.net/OpenSource/SharpZipLib/[^]
  Permalink  
Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 3

You already asked this question in how to reduce file size from mb to kb + by C++[^], and marked it as solved. If you have additional information or questions then please edit the original.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web02 | 2.8.160426.1 | Last Updated 19 Nov 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100