Trying to develop a Xamarin Forms mobile application which displays blobs stored in Azure-Storage container through the api.
Current process goes like this API > Azure-Storage Blob > Displayed in Xamarin mobile application.
Connecting to azure storage using Storage Account Key.
Problem is, blobs are not displaying in the mobile application when public access setting on the container is set to 'private'. If the container public access setting is set to 'blob' then the photos display in the xamarin Mobile app.
Photo For illustration purposes.Photo of issue
Code is below.
string storageConnectionString
Environment.GetEnvironmentVariable("storageconnectionstring");
CloudStorageAccount storageAccount;
if (CloudStorageAccount.TryParse(storageConnectionString, out
storageAccount))
{
// If the connection string is valid, proceed with operations against
Blob storage here.
...
}
else
{
//Error
}
[enter image description here][1]CloudBlobClient cloudBlobClient = storageAccount.CreateCloudBlobClient();
How can i make the container private whilst still displaying the blobs in the mobile application?