getReadStream difference to createReadStream
I'm switching from using a createReadStream in my code for a local file to using client.files.getReadStream from the node SDK. Every time I get the error:
internal/streams/legacy.js:59 throw er; // Unhandled stream error in pipe. ^ Error: write EIO at _errnoException (util.js:1022:11) at WriteWrap.afterWrite [as oncomplete] (net.js:880:14)
It's as if the stream doesn't provide the expected contents of the image file. Adding a pipe(process.stdout) does show some scrambled file contents, so something is coming through. Any ideas, please?
Please sign in to leave a comment.
Comments
0 comments