title: Get an Azure Blob (image) and POST to an external API
body: <p>I have an app that is written and working in Google Apps script.  It grabs an image from Google Drive, converts it to a blob, and sends it to an external API via the request body.</p>
  <p>I am converting this app to nodejs and using an Azure Storage Account to store the images now, but still calling the same external API.</p>
  <p>In Google Apps script, to get the Google Drive image blob to send to the external API, I use <a href="https://developers.google.com/apps-script/reference/drive/file#getblob" rel="nofollow noreferrer">DriveApp.getFileById().getBlob()</a>.  This is not a string, but a blob itself.</p>
  <p>What do I use in node.js for Azure blob storage?</p>
  <p>I have tried to use <a href="https://docs.microsoft.com/en-us/javascript/api/azure-storage/azurestorage.services.blob.blobservice.blobservice?view=azure-node-legacy#getBlobToText_string__string__BlobToText_" rel="nofollow noreferrer">getBlobToText</a>, before understanding that's not what the API wants.  It doesn't want a string, but the blob itself.  I have looked at getBlobToStream and others as well, but none of them seem to actually get the blob itself.</p>
  <p>I have read many, many stackoverflow Q&amp;As, along with many other articles and sites, but to can't find any talking about using a downloaded Azure blob to send to an external API.</p>