Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

280
Visualizações
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 Respostas
Responde à pergunta

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda