Currently, in our application, all blob storage and containers have public access. But, regarding security purposes, we are going to make containers and blobs private. After making the private, we are getting a 404 error status code while reading a file from blob.
We know there are multiple ways to access a private blob using C#. But we don't want to go with the SaS token.
Except for the SAS token, is there any other way to access private blobs in the web API in C#?

Amit MohantyPosted May 25, 2023, 12:26 PM
In that case, if you want to display the private blob on the UI without using a SAS token, you can create a server-side endpoint that serves as a proxy to retrieve the blob content and return it to the client.
Atul PatilPosted May 25, 2023, 11:25 AM
Thanks for the response Amit, but the requirement is we have stored the blob storage path into the DB, and returning that path from DB. Using that path we are showing image on UI.
When we make a Private access, that path gives an error 404 on UI.
Amit MohantyPosted May 23, 2023, 9:46 AM
Yes, besides using a SAS (Shared Access Signature) token, there is another way to access private blobs in a web API using C#: by making use of the Azure Storage account key.