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 bytea.
The problem is that I cannot display the image when I need it.
The homepage is where I need to display the images.
axios.get('http://localhost:3333/api/getAllHairdressers').then((result)=>{
console.log(result.data);
this.setState({data:result.data})
})
}
log data.result is
counter : 1 cutprice : null description : null id : 32 image : {type: "Buffer", data: Array(438763)} location : null password : "123" salname : null username : "ttt"
So how could I show this image? What do I need to use?