I need to upload a large file(up 4GB) using Blazor. Please in your answers using the new version of Azure Storage SDK (v12 Azure.Storage.Blobs NuGet package.)
In my case, the old version will not work Azure Storage SDK (v11 WindowsAzure.Storage NuGet package.)
Requirement`
- Upload file in Blazor UI
- Send that file to the server side via API
- Store that file in Azure Blob Storage on the server side.
I try a few ways to do this but I didn't manage it. Is there any way to do this?
What I tried`
- Send the file itself(2GB) to API but out of memory exception (google says do not do this way, bad practice)
2.Cut the file as chunks and send it to API, the first part of sending works but I can't collect them all together as one file and store it in Azure Blob Storage (I will have a memory issue).
If there is a way to store it in Azure Blob for example store the first part of chunks then update that file and write other parts sequentially in one file on Azure Blob not service memory. In the end, I will have one large file in Blob.