Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Another way of gunzipping File streams #7

Open
sebsel opened this issue Nov 26, 2018 · 0 comments
Open

Another way of gunzipping File streams #7

sebsel opened this issue Nov 26, 2018 · 0 comments
Assignees

Comments

@sebsel
Copy link

sebsel commented Nov 26, 2018

Hi! Thanks for your package!

I have been playing around with it for a few hours now, and there seems to be some bug (at least in my test-file of 1MB (9,5MB unzipped), where somewhere a few MBs in, things start to break down. It's XML, and it starts out right, but halfway it blows up with weird characters. I can't share the file due to copyright unfortunately :(

But, I found this, and it solved my problem, so I thought it would be nice to let you know:

File.stream!(filename, [:compressed])
|> Enum.into("")

See docs for more modes: https://hexdocs.pm/elixir/File.html#open/2

@ne-sachirou ne-sachirou self-assigned this Feb 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants