重复使用任何文件的大小 [英] reduse size for any file

查看:91
本文介绍了重复使用任何文件的大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


如何使用C#Windows窗体减少任何文件的大小


how cane reduce size for any file using C# windows form

推荐答案

请参阅我对问题的评论.目前尚不清楚您所说的减少"是什么意思,但您应该了解,大多数文件都可以以无损方式有效地压缩并以较小的大小进行压缩:
http://en.wikipedia.org/wiki/Lossless_compression [ http://msdn.microsoft.com/en-us/library/system.io. compression.aspx [^ ].

要使用ZIP,您可以使用#ziplib:
http://www.icsharpcode.net/opensource/sharpziplib/ [ http://en.wikipedia.org/wiki/7-Zip [ http://sevenzipsharp.codeplex.com/ [ ^ ].

这两个ZIP库都是开源的.

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


这篇关于重复使用任何文件的大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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