From e07e153f98ca3dfde48934701530c8dfc48920eb Mon Sep 17 00:00:00 2001 From: Titouan CREACH Date: Fri, 7 Oct 2022 10:24:22 +0200 Subject: [PATCH] Correction upload --- Helpers/FluentBlobStorage.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Helpers/FluentBlobStorage.cs b/Helpers/FluentBlobStorage.cs index deb11f0..b29acca 100644 --- a/Helpers/FluentBlobStorage.cs +++ b/Helpers/FluentBlobStorage.cs @@ -102,7 +102,7 @@ public FluentBlobStorage WithContentType(string contentType) BlobContainerClient containerClient = blobServiceClient.GetBlobContainerClient(ContainerName); BlobClient blobClient = containerClient.GetBlobClient(FileName); - var res = await blobClient.UploadAsync(Convert.FromBase64String(b64), Headers); + var res = await blobClient.UploadAsync(new MemoryStream(Convert.FromBase64String(b64)), Headers); return (blobClient.Uri, res); }