Question

I have a url of a gzipped file. I would like to obtain an InputStream of the actual file in Java. What is the best way to achieve this?

Was it helpful?

Solution

Do you mean, something like GZIPInputStream?

InputStream is = ....
InputStream gis = new GZIPInputStream(is);
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top