Given the binary in Elixir that represents the compressed file, how can I pass them to Erlang zlib for bloat?
compressed = <<120, 218, 237, 125, 123, 115, 28, 71, 126, ...>>
I tried:
z = :zlib.open() uncompressed = :zlib.inflate(z, compressed) :zlib.close(z)
Error returned:
** (ErlangError) erlang error: :einval :zlib.call/3 :zlib.inflate/2
Expects "iodata" as an argument, so maybe I just need to convert it?
source share