maybe simple question but i am stuck for like 2 days,
i have azure blob storage to store images for MVC application running on AppService and i need best way to store images for different galeries
i have definition in database like ImageName | Galery_Id for example
and i will run some ajax to get data from database by Galery_Id
now i have all image names (prox 150-250 images per Galery)
but i need best and fastest way to render then on frontend and have like static function on backend that will retrive them 1 by 1 from azure blob seems little bit slow and so complicated
public static string GetImagesFromBlob(string name)
{
BlobServiceClient blobServiceClient = new BlobServiceClient("");
blobContainer = blobServiceClient.GetBlobContainerClient(blobContainerName);
blobContainer.CreateIfNotExistsAsync(PublicAccessType.Blob);
List<Uri> allBlobs = new List<Uri>();
foreach (BlobItem blob in blobContainer.GetBlobs())
{
if (blob.Properties.BlobType == BlobType.Block)
allBlobs.Add(blobContainer.GetBlobClient(blob.Name).Uri);
}
return "";
}
Actually i dont want to use SAS keys
is there any option to use already authenticated user on app and use image tag without SAS key?
or any other idea? i want all things in Azure
Thx a lot