node-unzip icon indicating copy to clipboard operation
node-unzip copied to clipboard

Multiple 'invalid signature' errors when piping a non-file-stream

Open silverwind opened this issue 10 years ago • 5 comments

Piping in a zip stream directly from archiver, results in a series of invalid signature errors. It seems as if all bytes in the stream are checked for a signature. On the other hand, the same zip gets extracted correctly when going through file streams first.

See @ctalkington's comments in https://github.com/ctalkington/node-archiver/issues/91. Also, here's a test case.

silverwind avatar Sep 15 '14 06:09 silverwind

+1 .. Can anyone suggest an alternative library while this fails ?

gunish avatar Oct 03 '14 02:10 gunish

Also getting this error here as well. What can we do to work around this?

jladuval avatar Oct 14 '14 02:10 jladuval

@silverwind @gunish @jladuval FYI https://github.com/EvanOxfeld/node-unzip/pull/64 << works for me

missinglink avatar Oct 28 '14 18:10 missinglink

Confirmed working with that fork, awesome!

silverwind avatar Oct 28 '14 18:10 silverwind

This is fixed in new version https://www.npmjs.com/package/unzip2

seagullua avatar Dec 11 '14 13:12 seagullua