I am trying to list all the jpg files in my blob. When I use this code
CloudStorageAccount storageAccount1 = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("ConnString"));
CloudBlobContainer container1 = blobClient.GetContainerReference(imageFolder);
var blobs = container1.ListBlobs();
All the files in that particular blob are listed
I have tried to modify the above code but the modified code does not list anything.
CloudStorageAccount storageAccount1 = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("ConnString"));
CloudBlobContainer container1 = blobClient.GetContainerReference(imageFolder);
var blobs = container1.ListBlobs().OfType<CloudBlobContainer>().OrderByDescending(b => b.Name).Where(b => b.Name.EndsWith(".jpg"));
.OfType<CloudBlobContainer>()
- are you sure you have the right type? - David Makogon