locked
how to download blob of Azure storage using New Azure Storage JavaScript RRS feed

  • Question

  • how to download blob from Azure Storage using "Azure Storage JavaScript Client Library" but in
      the reference (https://dmrelease.blob.core.windows.net/azurestoragejssample/samples/sample-blob.html) I only find this line of code to download "var downloadLink = blobService.getUrl ('mycontainer', 'myblob ',' SAS_TOKEN '); " but to implement it does not download anything I hope you can help me
    Thursday, November 30, 2017 11:06 PM

All replies

  • You cannot download the files when you are in the browser context. Browsers do not allow you to download to the local filesystem. Instead of that, you can show images in the browser; or put a link to the blob for users to click and download.
    Thursday, November 30, 2017 11:38 PM
  • if to put it as a link and download it loads the url "https://itproyectacloud.blob.core.windows.net/pybc/Proyecta%20%20a%20%20aldesa.pdf?%3Fsv=2017-04-17&ss = bfq & srt = sco & sp = rwdlacup & st = 2017-02-23T00% 3A00% 3A00Z & se = 2017-12-05T00% 3A00% 3A00Z & spr = https% 2Chttp & sig = elI9VS9fg2XFUVI% 2FldfXEsXOSOxJtDNfurKfVZmnxpA% 3D "

    and I get the following

    please your support for this problem

    This XML file does not appear to have any style information associated with it. The document tree is shown below.
    <Error>
    <Code>AuthenticationFailed</Code>
    <Message>
    Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature. RequestId:45c4933b-001e-00b1-3434-6a65d6000000 Time:2017-11-30T23:36:46.8590483Z
    </Message>
    <AuthenticationErrorDetail>sr is mandatory. Cannot be empty</AuthenticationErrorDetail>
    </Error>


    • Edited by Luis Saenz Friday, December 1, 2017 9:33 PM
    Friday, December 1, 2017 9:31 PM
  • @Luis Saenz

    That looks like an issue with your SAS URL. Could you request another one and try again?

    -----------------------------------------------------------------------------------------------------

    Do click on "Mark as Answer" on the post that helps you, this can be beneficial to other community members.

    Monday, December 4, 2017 4:55 AM