Reading directly from a zipped stream

For this particular problem I had, I did not find a solution.

However I recently started another project and found this library: GitHub - ne-sachirou/stream_gzip: Gzip or gunzip an Elixir stream · GitHub

I’m not sure if it works with .zip files.

If it doesn’t and you have control over the compression used, you could stream process with that:

"x.gz"
|> File.stream!
|> StreamGzip.gunzip
|> Enum.into("")