开发者

How to download/gunzip a file and obtain an InputStream of the actual file?

开发者 https://www.devze.com 2023-04-06 06:01 出处:网络
I have a url of a gzipped file. I would like to obtain an InputStream of the actual file in Java. What i开发者_开发技巧s the best way to achieve this?Do you mean, something like GZIPInputStream?

I have a url of a gzipped file. I would like to obtain an InputStream of the actual file in Java. What i开发者_开发技巧s the best way to achieve this?


Do you mean, something like GZIPInputStream?

InputStream is = ....
InputStream gis = new GZIPInputStream(is);
0

精彩评论

暂无评论...
验证码 换一张
取 消