I have a ReadableStream from a post request and i cant find a way to transform the body(ReadableStream) to a file. I tried to pipe the ReadableStream into a file like this
I always get: error: Uncaught (in promise) BadResource: Bad resource ID at async write (deno:ext/net/01_net.js:33:12) at async Object.write (deno:ext/net/01_net.js:82:25)
what is the correct way to create a file from a readable stream ?
Continue the conversation
Join the Discord to ask follow-up questions and connect with the community
D
Deno
Chat about Deno, a modern runtime for JavaScript and TypeScript.