2013-07-28 61 views
-1

我有一个byte[],它包含没有压缩文件头的压缩数据。我想知道如何从byte[]解压缩数据。如何从byte []解压缩数据?

+4

你有什么试过?向我们展示一些代码。而且,您至少应该[在提问前搜索解决方案](http://www.google.com/search?q=unzip+byte+array+java) – BackSlash

+0

不,我甚至不知道哪个类可以是用过的。 – TieDad

+0

你是否错过了标题,或者你是否缺少前面的上下文? –

回答

5

您可以使用ZipInputStream,它需要InputStream。 A ByteArrayInputStream可以从byte []构建。