title: AWS S3 getObject to image
body: <p>The 'getObject' request from the AWS S3 SDK returns a 'data.Body' such as 'Uint8Array (51213) [137, 80 ....'</p>
  
  <p>How to transform this data to display it in an HTML tag </p>
  
  <pre><code>&lt;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 = ????
  </code></pre>
  
  <p>Thank you for your answers
  YC</p>