title: Upload stream to azure blob storage
body: <p>I would upload an audio file to azure blob storage.
  First I make a http request to url to get the file .</p>
  
  <p>Then I would "directly" save it to azure blob storage without the need to store it in server then upload it.</p>
  
  <p>Here's my code:</p>
  
  <pre><code>request
    .get(url, {
      auth: {
        bearer: token
      }
    })
    .on("response", async function(response) {
      const res = await blobService.createAppendBlobFromStream(
        "recordings", // container name
        "record.wav",
        response, // should be stream
        177777, // stream length
        function(err, res) {
          try {
            console.log(res);
          } catch (err) {
            console.log(err);
          }
        }
      );
    });
  </code></pre>
  
  <p>Actually when I upload a file in blob storage and check my database I get an <strong>empty file</strong> with no data inside, I think I'm not sending the data stream correcty.</p>
  
  <p>What I expect is to get the audio file in blob storage with data inside that I get from the <code>get</code> request</p>
  
  <p>I should also specify the stream length but I don't know how to get it I putted a random number but it should be the right stream length. I have checked <code>response</code> object but I havn't found that infomation.</p>