title: How convert type data buffer to image in react js
body: <p><em><strong>Hello, i have next the image de type buffer, this data is one image, how can I convert my buffer data into an image</strong></em></p>
  <p><em>it shows me the following data when I make the request to the api</em></p>
  <p><a href="https://i.stack.imgur.com/FRTRY.png*" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FRTRY.png*" alt="enter image description here" /></a></p>
  <p>Any suggestion</p>
  <p><em>The backend is made in node js sequelize MYSQL</em>.</p>
  <p><em>and the frontend in react js</em></p>
  <p><em><strong>I have next example</strong></em></p>
  <p><a href="https://codesandbox.io/s/happy-christian-z4m1x?file=/src/LoadingData.js" rel="nofollow noreferrer">https://codesandbox.io/s/happy-christian-z4m1x?file=/src/LoadingData.js</a></p>
  <p><em><strong>With this he retrieved the data from the MySQL database</strong></em>
  <a href="https://i.stack.imgur.com/naeBY.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/naeBY.png" alt="enter image description here" /></a></p>
  <p><em><strong>In this way I register</strong></em></p>
  <p><a href="https://i.stack.imgur.com/k7J9R.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/k7J9R.png" alt="enter image description here" /></a></p>
  <p><em><strong>and in this way the image is stored</strong></em></p>
  <p><a href="https://i.stack.imgur.com/rbldv.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/rbldv.png" alt="enter image description here" /></a></p>