title: How to display an image in react from PostgreSQL
body: <p>The app is about taking an image from the user using HTML, sending it via API and then adding it to the db saving it as <code>bytea</code>.</p>
  
  <p>The problem is that I cannot display the image when I need it.</p>
  
  <p>The homepage is where I need to display the images.</p>
  
  <pre><code>axios.get('http://localhost:3333/api/getAllHairdressers').then((result)=&gt;{
    console.log(result.data);
    this.setState({data:result.data})
  })
  }
  </code></pre>
  
  <p>log data.result is </p>
  
  <blockquote>
    <p>counter : 1 cutprice : null description : null id : 32 image : {type:
    "Buffer", data: Array(438763)} location : null password : "123"
    salname : null username : "ttt"</p>
  </blockquote>
  
  <p>So how could I show this image?
  What do I need to use?</p>