...
/Updating the Code to Add Images to Storage Account
Updating the Code to Add Images to Storage Account
Update the API code to support uploading images to the Storage Account.
We'll cover the following...
Preparing the code
Now that we have set up the storage account, our next step is to update our existing code so that the API can upload files to this storage account. Here’s how:
- In the
csproj
file, we will add the following NuGet package.
Press + to interact
<PackageReference Include="Azure.Storage.Blobs" Version="12.15.0" />
This will allow us to use the Azure storage account SDK.
- Within the
ImageDescriberApi.cs
file, we