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

Error decompressing zlib data in a Pipe #38

Open
lesderid opened this issue Aug 10, 2017 · 2 comments
Open

Error decompressing zlib data in a Pipe #38

lesderid opened this issue Aug 10, 2017 · 2 comments

Comments

@lesderid
Copy link

lesderid commented Aug 10, 2017

Using new TransformationFilter(new ZlibDecompression) in a Pipe and using processMsg to write the zlib-compressed data to the pipe fails with "zlib deflate error: -5". I'm guessing this is due to TransformationFilter splitting it up?

As a workaround I'm pre-processing with std.zlib.uncompress(), but I was wondering if this can be done with TransformationFilter somehow.

Additionally, I was wondering why there are no Zlib filters? The wiki and API reference seem to have them.

@etcimon
Copy link
Owner

etcimon commented Aug 10, 2017

Have you tried using a ZlibDecompressionStream? You can start it with specific level of compression. This part of the code was updated more recently than the wiki so it might need some updating.

@lesderid
Copy link
Author

lesderid commented Aug 10, 2017

Is it possible to use a ZlibDecompressionStream with a Pipe? I'm not sure how to use it.

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