Skip to main content
Question

How to create an image file using its buffer

  • February 17, 2025
  • 0 replies
  • 62 views

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

This post has been closed for comments. Please create a new post if you need help or have a question about this topic.