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

GZ decompression giving error #15

Closed
puggsoy opened this issue Sep 6, 2014 · 4 comments
Closed

GZ decompression giving error #15

puggsoy opened this issue Sep 6, 2014 · 4 comments

Comments

@puggsoy
Copy link

puggsoy commented Sep 6, 2014

Upon trying to decompress a file by using format.gz.Reader.read(), I get this:

Called from ? line 1
Called from Main.hx line 25
Called from console/Begin.hx line 31
Called from Main.hx line 33
Called from format/gz/Reader.hx line 83
Called from C:\HaxeToolkit\haxe\std/neko/_std/haxe/zip/Uncompress.hx line 34
Uncaught exception - ZLib Error : invalid block type (-3)</code>

I'm sure the file is valid, I compressed it myself using 7-zip.

@ncannasse
Copy link
Member

Are you sure it's a .gz file and not a .zip ?

@puggsoy
Copy link
Author

puggsoy commented Sep 6, 2014

I am. In fact, here's the file in question so you can check it yourself. This file is just neko.dll that I compressed myself to use for testing purposes.

@ncannasse
Copy link
Member

I could not reproduce, it is most likely that you forgot to do readHeader() before readData(). I have added a read() function that makes the usage of the class more straightforward

@puggsoy
Copy link
Author

puggsoy commented Sep 6, 2014

Ah that must have been it, I didn't realise that was necessary. Thanks!

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