Skip to main content
Question

How to create an image file using its buffer


Hi,

I do have a binary response of an image, i.e. “data:image/jpeg;base64,/9j/4AAQS ...”. In my app I convert this into a Buffer using `Buffer.from(response.content, 'binary');`. How do work with such binary data? My goal here is to save the binary into an image file. Any built-in actions to work with file system?

Thanks

Did this topic help you find an answer to your question?

0 replies

Be the first to reply!