Returning Azure Blob Stream directly from WCF service

前端 未结 1 999
旧时难觅i
旧时难觅i 2021-01-19 15:31

I am looking to return a stream from Azure Blob Storage directly to the browser via WCF. Basically I have a REST WCF service and I am looking to have users download files vi

1条回答
  •  失恋的感觉
    2021-01-19 16:12

    I have done something similar where WCF was used to authorize the client (and check the blob still exists and so on). If everything was OK the WCF service returned a URL with a Shared Access Signature - this allowed the client to access the stream directly from storage. Saving the transaction costs of pulling the blob to the wcf role and then streaming from there.

    Might this work for you?

    0 讨论(0)
提交回复
热议问题