如何通过C#将文件大小从mb减小到kb + [英] how to reduce file size from mb to kb + by c#

查看:214
本文介绍了如何通过C#将文件大小从mb减小到kb +的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

请帮助我
关于这个程序吗?
如何通过c#
将文件大小从mb减小到kb + 示例创建像winrar这样的程序.

[edit]已删除呼喊声-OriginalGriff [/edit]

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]

推荐答案

使用ICSharpCode.SharpZipLib.dll.您可以在网上找到它.
Use ICSharpCode.SharpZipLib.dll. You can find it on web.


在这里开始阅读: http://en.wikipedia. org/wiki/Data_compression [ ^ ]-它提供了一个很好的概述.通过以下链接-他们可以找到有关各种方法的更多解释.

然后,当您确定需要哪种压缩方式后,就可以开始实施它们了.

但是不要期望这是一个简单的过程. WinRar和WinZip对此进行了大量研究,并且许多文件已经被压缩,因此要实现显着的收益变得非常困难.

或者,您可以使用zSharpLib: http://www.icsharpcode.net/OpenSource/SharpZipLib/ [ ^ ]
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/[^]


您已经问过这个问题如何通过C ++将文件大小从mb减小到kb +的问题 [
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.


这篇关于如何通过C#将文件大小从mb减小到kb +的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆