Browsing index pages (3 articles)
↧
How to pipe Writable Buffer to a ReadStream?
How can I take a writable stream and return a readable stream from a buffer?I have the following to write the data that comes from an ftp server to an array of chunks:let chunks = []let writable = new...
View ArticleAnswer by Ivan Velichko for How to pipe Writable Buffer to a ReadStream?
Yep, Node.js streams are hard to grasp. Logically, you don't need two streams here. If you want to read from your FTP class as from a stream, you just need to implement a single readable stream. Check...
View ArticleAnswer by Amit Beckenstein for How to pipe Writable Buffer to a ReadStream?
Pipe works the other way round as you're thinking. According to Node.js's documentation, pipe() is a method of Readable, and it accepts a Writable as its destination. What you were trying to do was...
View Article
Browsing index pages (3 articles)