The 'getObject' request from the AWS S3 SDK returns a 'data.Body' such as 'Uint8Array (51213) [137, 80 ....'
How to transform this data to display it in an HTML tag
<img id='imgTest' .....
s3.getObject({
Bucket: 'mybuket',
Key: "test/myImage.png"
}, function (errtxt, data) {
if (errtxt) {
console.Log("lireImage", "ERR " + errtxt);
} else {
console.log('lecture OK')
let imageTest =document.getElementById('imgTest')
imageTest.src = ????
Thank you for your answers YC