![Why is the buffer of the "readStream" empty? The first file (thumbnail.webp) has ~50kb, de second (temp.webp) has 0kb, and so does " readStream", why is that? If I use imageWebpStream directly the Why is the buffer of the "readStream" empty? The first file (thumbnail.webp) has ~50kb, de second (temp.webp) has 0kb, and so does " readStream", why is that? If I use imageWebpStream directly the](https://i.redd.it/4hxxmcvvs1ba1.png)
Why is the buffer of the "readStream" empty? The first file (thumbnail.webp) has ~50kb, de second (temp.webp) has 0kb, and so does " readStream", why is that? If I use imageWebpStream directly the
Piping readstream to express response results in corrupt file · Issue #76 · aheckmann/gridfs-stream · GitHub
![Node.js Streams - Part 2 (Beginner/Intermediate) - Pipe - Transform - Pipeline and Error management - YouTube Node.js Streams - Part 2 (Beginner/Intermediate) - Pipe - Transform - Pipeline and Error management - YouTube](https://i.ytimg.com/vi/5w_nZnev3kk/maxresdefault.jpg)
Node.js Streams - Part 2 (Beginner/Intermediate) - Pipe - Transform - Pipeline and Error management - YouTube
![Streams, Piping, and Their Error Handling in Node.js | by Kunal Tandon | JavaScript in Plain English Streams, Piping, and Their Error Handling in Node.js | by Kunal Tandon | JavaScript in Plain English](https://miro.medium.com/v2/resize:fit:1400/1*DMQdNq1BkBMlb-wWlzOowA.png)