question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[FEATURE REQ][BLOB STORAGE] Multi-part block blob upload using input stream

See original GitHub issue

Is your feature request related to a problem? Please describe. Azure storage has a limit of 256MB for blob upload using a single PUT request. For larger files, it requires doing a multi-part upload. The storage SDK automatically does this multi-part upload for large files when using the uploadFromFile API but not when using uploadWithResponse which accepts an InputStream.

Describe the solution you’d like Use multi-part upload for large files when uploading blobs using an InputStream. I haven’t yet checked if EncryptedBlobClient uses multi-upload for this API. If it doesn’t, please add support for that client too.

Describe alternatives you’ve considered It’s not a viable option for us to save the content to a local disk file and perform the upload. So no other valid alternatives.

Additional context NA

Information Checklist Kindly make sure that you have added all the following information above and checkoff the required fields otherwise we will treat the issuer as an incomplete report

  • Description Added
  • Expected solution specified

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
rickle-msftcommented, Jun 22, 2020

@SukruthKS Can you please confirm whether all components of this issue have been addressed and if so close it?

1reaction
rickle-msftcommented, May 19, 2020

For this operation, you should use BlobClient. The reason being BlockBlobClient is supposed to map directly to the rest API, so we won’t put any composite operations on that client. BlobClient is where higher level things like uploading a large stream will live.

@gapra-msft Can you please take a look at what’s going on with EncryptedBlobClient?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Upload a blob using .NET - Azure Storage - Microsoft Learn
NET. To upload a blob by using a file path, a stream, a binary object or a text string, use either of the...
Read more >
Do's and Don'ts for Streaming File Uploads to Azure Blob ...
There are multiple upload methods available, but make sure you choose one that has an input of a Stream, and use the section.Body...
Read more >
java - Can I upload a stream to Azure blob storage without ...
We'll log feature request to enable uploading from a stream without specifying length. For now, you may want to use the openOutputStream method...
Read more >
How To Read and Process Files with the JavaScript ...
Here's an example of uploading a file using an HTML <form> : <form enctype="multipart/form-data" action="/upload" method="post"> <input ...
Read more >
Secure Azure AD User File Upload with Azure AD Storage ...
It is important that public access is disabled. This is per default enabled. Upload a file to the container and get the URL...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found