且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何从Java传递COM pressed字符串到C#

更新时间:2022-11-08 23:40:09

在.NET中可以使用的 System.IO.Com pression.GZipStream

In .NET you can use System.IO.Compression.GZipStream.

在Java的 java.util中。 zip.GZIPOutPutStream 似乎适用于COM pression任务。

In Java java.util.zip.GZIPOutPutStream seem suitable for the compression task.

编辑:
另一种方法是7-ZIP。有一个人员为C#和Java。


Another alternative might be 7-zip. There is an SDK for both c# and Java.

编辑2:
快速谷歌的XMPP COM pression显示,XMPP本身支持流融为一体pression 。这将COM preSS你的整个沟通,不会要求你为Base64 EN code你的COM pressed数据。这听起来更像是一个更高效,更兼容的方式对COM preSS数据不仅仅是COM pressing您的有效载荷。

Edit 2:
A quick Google on "XMPP compression" reveals that XMPP itself support stream compression. This will compress your whole communication and will not require you to BASE64 encode your compressed data. This sounds more like a more efficient and more compatible way to compress your data than just compressing your payload.