在.net 1.1中我们要实现压缩这一功能,一般都是用open source的SharpZipLib 或者调用J#类库。
现在在.net 2.0中增加了压缩功能,名字空间为 using System.IO.Compression;

以下是使用示例:

压缩字符串

.NET 2.0 的压缩功能public static string ZipString(string unCompressedString)
        }


解压缩字符串
 

.NET 2.0 的压缩功能public static string UnzipString(string unCompressedString)
        }

压缩文件

.NET 2.0 的压缩功能 public static bool AddZip(string srcFilename, string zipFileName)
        }

相关文章:

  • 2021-09-20
  • 2022-12-23
  • 2021-07-07
  • 2021-08-20
  • 2022-01-01
  • 2021-04-03
  • 2021-10-18
  • 2021-11-20
猜你喜欢
  • 2021-12-25
  • 2021-11-16
  • 2022-12-23
  • 2022-03-05
相关资源
相似解决方案