你怎么DECOM preSS字节COM pressed用的Lempel-谢夫晴康算法.NET? [英] How do you decompress bytes compressed with Lempel-Ziv Haruyasu algorithm in .NET?

查看:151
本文介绍了你怎么DECOM preSS字节COM pressed用的Lempel-谢夫晴康算法.NET?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你怎么DECOM preSS这些LZH格式.NET中一(暗示:我会preFER来使用,而不是如果可能的实施已经实现的功能,)。

How do you decompress one of those LZH formats in .NET (hint: I would prefer to use functionality already implemented, instead of implementing if possible).

我的情况是,一个服务器发送我的XML文档;该文件有一定的Base64编码的COM pressed数据。

The situation I am in is that a server sends me an XML document; that document has some compressed data in Base64 encoding.

从XML获得字节后,我已经盲目尝试 DeflateStream ,希望它能正常工作。它没有工作;它返回的InvalidDataException - 未知块类型流可能已损坏。的错误,我不知道何去何从

After getting the bytes from the XML, I've blindly tried DeflateStream, hoping it would work. It didn't work; it returned the "InvalidDataException - Unknown block type. Stream might be corrupted" error, and I don't know where to go from here.

推荐答案

还有一种实用工具,您可以从您的应用程序调用(不是免费的,但不贵)的:

There is a utility that you may be able to call from your application (not free but not expensive) at:

链接1

有一个关于你可以使用在组件$ C $的CProject文章:

There is a CodeProject article about a component you could use at:

链路2

这篇关于你怎么DECOM preSS字节COM pressed用的Lempel-谢夫晴康算法.NET?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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