tanhauhau / express-easy-zip Goto Github PK
View Code? Open in Web Editor NEWEasy zip for your express server
License: MIT License
Easy zip for your express server
License: MIT License
I worked around it by commending out the _this.end() call.
Error [ERR_STREAM_WRITE_AFTER_END]: write after end
at write_ (_http_outgoing.js:572:17)
at ServerResponse.write (_http_outgoing.js:567:10)
at module.exports.ondata (node_modules/readable-stream/lib/_stream_readable.js:619:20)
at module.exports.emit (events.js:182:13)
at module.exports.Readable.read (node_modules/readable-stream/lib/_stream_readable.js:469:26)
at flow (node_modules/readable-stream/lib/_stream_readable.js:813:34)
at ServerResponse. (node_modules/readable-stream/lib/_stream_readable.js:683:7)
at ServerResponse.emit (events.js:182:13)
at Socket.ondrain (internal/http.js:21:44)
at Socket.emit (events.js:187:15)
at onwriteDrain (_stream_writable.js:490:12)
at afterWrite (_stream_writable.js:478:5)
at onwrite (_stream_writable.js:471:7)
at WriteWrap.afterWrite [as oncomplete] (net.js:848:19)
Emitted 'error' event at:
at writeAfterEndNT (_http_outgoing.js:631:7)
at process._tickCallback (internal/process/next_tick.js:63:19)
Hello.
I have a situation where I want to zip a buffer that contains binary data.
I tested the file with the underlying library (zip-stream) and it works correctly without problem. However, you only accept strings as input, and your library deletes any content that is not a string:
Lines 82 to 83 in a2bed82
Why this limitation when the zip-stream library is capable of handling Buffer | Stream | String?
is there a way to holds the zip created to say send over email?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.