I have the list of image files from azure files storage and can able to get through below code
CloudStorageAccount storageAccount = CloudStorageAccount.Parse(CloudConfigurationManager.GetSetting("StorageConnectionString"));
CloudFileClient fileClient = storageAccount.CreateCloudFileClient();
CloudFileShare share = fileClient.GetShareReference(ConfigurationManager.AppSettings["ShareReference"]);
if (share.Exists())
{
CloudFileDirectory rootDir = share.GetRootDirectoryReference();
CloudFileDirectory sampleDir = rootDir.GetDirectoryReference("freedom/" + DocName);
if (sampleDir.Exists())
{
IEnumerable<IListFileItem> fileList = sampleDir.ListFilesAndDirectories();
//
}
}
But I am unable to find a way to how I can bind this to model without downloading it in project so that I can show the png as thumbnail in my view.