title: how to insert an image from base64 string
body: <p>The code below should insert an image blob made from the base64 string img_3k, but somehow it doesn't. What am I doing wrong?</p>
  
  <pre><code>var img_3k = "iVBORw0KGg..."
  
  function searchAndReplace() {
    var body = DocumentApp.getActiveDocument().getBody();
    var blobImg = Utilities.newBlob(Utilities.base64Decode(img_3k), MimeType.PNG);
    body.insertImage(0, blobImg);
  }
  </code></pre>