title: error in uploading base64Image to azure storage by using nodejs
body: <p>I am getting an error when uploading a base64Image to Azure.</p>
  <p>Code with Node.js:</p>
  <pre class="lang-js prettyprint-override"><code>var name = req.body.name;
  var img = req.body.image; //this image is base64Image
  
  var uploadOptions = {
      container: 'myphoto',
      blob: name,
      text: img
  }
  
  blobServiceClient.createBlockBlobFromText(
      uploadOptions.container,
      uploadOptions.blob,
      uploadOptions.text,
      {
          contentType: 'image/jpg',
          contentEncoding: 'base64'
      }, 
      function(error, result, response) {
          if (error) {
              res.send(error);
          }
  
          console.log(&quot;result&quot;, result);
      
          console.log(&quot;response&quot;, response);
      }
  );    
  </code></pre>
  <p>This is the image in Azure:
  <img src="https://i.stack.imgur.com/SOIFI.png" alt="the result that I got in Azure" /></p>
  <p>and this is the error I get when I open the image:
  <img src="https://i.stack.imgur.com/3dQHV.png" alt="the error that I got when I opened the image" /></p>
  <p>The requested image is in base64Image formatting.</p>
  <p>How can I fix this error?</p>