如何在node.js中使用gzip解压缩,压缩二进制数据 [英] How to decompress, compressed binary data using gzip in node.js

查看:884
本文介绍了如何在node.js中使用gzip解压缩,压缩二进制数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我们正在接收服务的压缩二进制文件,我需要使用gzip或node.js中的任何其他格式解压缩为utf8 string。我们怎么做到这一点?请注意,使用zlib进行压缩。在此先感谢。

解决方案

在此处阅读文档: http:// nodejs.org/api/zlib.html [ ^ ]

Hi,
We are receiving a compressed binary from service which i need to decompress to "utf8 string" using gzip or any other format in node.js. How we can do this?. Note that compression happened using zlib. Thanks in advance.

解决方案

Read the documentation here : http://nodejs.org/api/zlib.html[^]


这篇关于如何在node.js中使用gzip解压缩,压缩二进制数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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