title: I want to upload files to Blob Storage NOT AS STREAMS (Buffer, base64) BUT AS original file (jpg , png jpeg)
body: <p>I am unable to find a way to upload a file not as a stream (buffer, base64) but as a file(png,jgeg,jpg) to Azure Storage Blob.</p>
  
  <p>MY Stream Code is </p>
  
  <pre><code>const blobServiceClient = new BlobServiceClient(
    `https://${account}.blob.core.windows.net`,
    sharedKeyCredential, defaultAzureCredentials
  );
  
  createBlob = (blobName,blob)=&gt;{
      try{
        async function main() {
            const containerClient = blobServiceClient.getContainerClient('blue');
            const content = base64_encode(blob.buffer);
            const blockBlobClient = containerClient.getBlockBlobClient(blobName);
            const uploadBlobResponse = await blockBlobClient.upload(content, content.length);
            console.log(`Upload block blob ${blobName} successfully`, uploadBlobResponse.requestId);
            return uploadBlobResponse.requestId;
          }
  
          main();
    }
    catch(err){
        res.send(err)
    }
  }
  
  function base64_encode(file) {
      // read binary data
      //var bitmap = fs.readFileSync(file);
      // convert binary data to base64 encoded string
      return file.toString('base64');
  }
  </code></pre>