Replies: 2 comments 1 reply
-
If you cannot use web streams natively, you can write a class extending the You have 2 methods to implement (you can omit the constructor):
There is also an example of such a custom zip.js/tests/all/test-custom-io.js Lines 6 to 25 in 151b598 |
Beta Was this translation helpful? Give feedback.
-
Hi sorry, I am new to this lib and still not sure how to fix the above issue need to add this
can you suggest a fix for the above would be greatly appreciated? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
const zipReader = new zip.ZipReader(readable)
ERR:
reader = new BlobReader(await new Response(reader.readable).blob()); //put all data into memory? if file over 2GB..
=> ReferenceError: Response is not defined
Response is Web API? is there any way work with big file(>2GB) use fs.createReadStream(local_path)... low memory! ;
and noted NO Readable.toWeb() in pure nodejs tho..
Beta Was this translation helpful? Give feedback.
All reactions