Как получить доступ к виртуальному каталогу внутри контейнера больших двоичных объектов?C#

Место общения программистов C#
Ответить Пред. темаСлед. тема
Anonymous
 Как получить доступ к виртуальному каталогу внутри контейнера больших двоичных объектов?

Сообщение Anonymous »


I am trying to download a file which is inside a subfolder of a blob container in a storage account using Azure c# function.
  • CODE:

`BlobUriBuilder blobUriBuilder = new BlobUriBuilder(fileUri); string containerName = blobUriBuilder.BlobContainerName; string blobName = blobUriBuilder.BlobName; BlobServiceClient blobServiceClient = new BlobServiceClient(connectionString); BlobContainerClient containerClient = blobServiceClient.GetBlobContainerClient(containerName); BlobClient blobClient = containerClient.GetBlobClient(blobName); // Check if the document exists if (!await blobClient.ExistsAsync()) { return new NotFoundObjectResult(new { error = "Verify the file name", details = "Unable to locate the file in the provided location" }); } BlobDownloadInfo download = await blobClient.DownloadAsync();` Solution required: I am able to download file from a root directory but when I try to download a file inside a subfolder it throws an error.


Источник: https://stackoverflow.com/questions/781 ... -container
Реклама
Ответить Пред. темаСлед. тема

Быстрый ответ

Изменение регистра текста: 
Смайлики
:) :( :oops: :roll: :wink: :muza: :clever: :sorry: :angel: :read: *x)
Ещё смайлики…
   
К этому ответу прикреплено по крайней мере одно вложение.

Если вы не хотите добавлять вложения, оставьте поля пустыми.

Максимально разрешённый размер вложения: 15 МБ.

  • Похожие темы
    Ответы
    Просмотры
    Последнее сообщение

Вернуться в «C#»