I have a library that takes as input a ReadableStream
, but my input is just a base64 format image. I could convert the data I have in a Buffer
like so:
var img = new Buffer(img_string, 'base64');
But I have no idea how to convert it to a ReadableStream
or convert the Buffer
I obtained to a ReadableStream
.
Is there a way to do this?