title: download azure blob stream to zip nodejs
body: <p>I have implemented <strong>getBlobToStream() from azure blob</strong>. and is working fine but now I wanted to convert the streams to zip and then download it. But I tried but failed every time. Here is my working code of single-stream download</p>
  <pre><code>  fileModel.findOne({ _id: req.params.id, canceled: false, isVisible: true, linkExpired: false, isBlocked: false, isDeleted: false }).exec(async function (error, result) {
      if (error) {
        resolve(error);
      } else {
        const { BlobServiceClient, StorageSharedKeyCredential } = require(&quot;@azure/storage-blob&quot;);
        const storage = require('azure-storage');
        const blobService = storage.createBlobService(process.env.BLOB_ACCOUNT, process.env.BLOB_ACCOUNT_KEY); 
        blobService.getBlobToStream(result.containerName, result.blobName, res, function (error, blob) {
          if (!error) { 
            console.log(blob); 
            res.end()
          } else {
            console.log(error);
            res.end();
          }
        });
      }
    })
  })
  </code></pre>
  <p>Help me in <strong>downloading stream to zip</strong>. Also, tell me that is this possible.</p>