Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

270
Views
Download files from Azure blob storage

There is html code written for download button. The complete Sharepoint 2013 hosted application functionality has JS code.
There is WCF solution using C# to get data from SAP system.
There is one page in application which has download button. Once clicked by the user, the file should get downloaded from Azure blob storage.

Kindly help how we can achieve this.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

I have tested in my environment

You can use the below javascript function to download files from Azure blob storage :

    async function main() {
        var fs = require('fs');
        const { BlobServiceClient, StorageSharedKeyCredential } = require("@azure/storage-blob");
        const account = "storage account name";
        const accountKey = "storage account key"
        const sharedKeyCredential = new StorageSharedKeyCredential(account, accountKey);
        const blobServiceClient = new BlobServiceClient(
        `https://${account}.blob.core.windows.net`,
        sharedKeyCredential);
        const containerClient = blobServiceClient.getContainerClient("container name");
        const blobClient = containerClient.getBlobClient("blob file name to be downloaded");
        const response = await blobClient.downloadToFile("blob file name to be downloaded");
    main();
about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!