CodexBloom - Programming Q&A Platform

Azure Blob Storage SDK v12 scenarios to Upload Large Files with 'The specified blob is not found' scenarios

👀 Views: 479 đŸ’Ŧ Answers: 1 📅 Created: 2025-08-30
azure blob-storage .net C#

I'm migrating some code and I'm using the Azure Blob Storage SDK v12 for .NET to upload files, but I'm working with an scenario when trying to upload files larger than 100MB. When I attempt to upload a 250MB file, I receive the following behavior: 'The specified blob is not found.' Despite the behavior message, the file appears to upload successfully, yet it does not exist in the blob storage. My code snippet for the upload is as follows: ```csharp var blobServiceClient = new BlobServiceClient(connectionString); var containerClient = blobServiceClient.GetBlobContainerClient(containerName); var blobClient = containerClient.GetBlobClient(fileName); using (var fileStream = File.OpenRead(filePath)) { await blobClient.UploadAsync(fileStream, new BlobHttpHeaders { ContentType = "application/octet-stream" }); } ``` I've also checked the container's public access level and it is set to 'Blob', which should allow uploads. I tried breaking the file into smaller chunks using the `UploadAsync` method with the `BlobUploadOptions` for a parallel upload, but this approach leads to the same behavior. Additionally, I have verified that my connection string has the correct permissions, and I can upload smaller files without any issues. Are there any limitations or additional configurations I need to consider for uploading larger files? Any help would be greatly appreciated. I'm working on a service that needs to handle this. Any ideas what could be causing this? I'm working with C# in a Docker container on Linux. What am I doing wrong?