Click here to Skip to main content
11,929,675 members (53,387 online)
Rate this:
Please Sign up or sign in to vote.
See more: C#

how cane reduce size for any file using C# windows form
Posted 21-Nov-12 13:09pm
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?

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

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:[^].

If could be, among many other algorithms, Deflate, GZip or ZIP. Please see:[^].

For working with ZIP, you can use #ziplib:[^].

Another option is using SevenZipSharp, a .NET wrapper of the famous 7-Zip:[^],[^].

Both ZIP libraries are open-source.


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
Web03 | 2.8.151126.1 | Last Updated 21 Nov 2012
Copyright © CodeProject, 1999-2015
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