You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to uncompress a .zg file in chunks following the example in the documentation: https://nodeca.github.io/pako/#Inflate.prototype.push but run into error. Could you help me understand and resolve this error?
I console.log out the inflate object just before the error check and saw the following outputs:
ra {options: {…}, err: -3, msg: 'invalid distance too far back', ended: true, chunks: Array(0), …}
chunks: []
ended: true
err: -3
header: Je {text: 0, time: 0, xflags: 0, os: 0, extra: null, …}
msg: "invalid distance too far back"
options: {chunkSize: 65536, windowBits: -15, to: '', level: 3, raw: true}
strm: qt {input: Uint8Array(8), next_in: 4, avail_in: 4, total_in: 52, output: Uint8Array(65536), …}
[[Prototype]]: Object
Still got "invalid distance too far back" error. Next, I included chunkSize in the pako init e.g. "var inflate = new pako.Inflate({to: "string", chunkSize:8})" but the error persists.
I'm having this issue as well. Did you ever figure it out? I need a javascript library for zlib or gzip that can produce the same binary results as the c++ library (for strings/buffers).
I'm trying to uncompress a .zg file in chunks following the example in the documentation: https://nodeca.github.io/pako/#Inflate.prototype.push but run into error. Could you help me understand and resolve this error?
Browser console output
Source code
Note: I'm doing chunk because I get a "distance too far back error" which I understand means the file is too big to be inflated at once.
Looking forward to your reply,
Charles
The text was updated successfully, but these errors were encountered: