Try to upload large file > 10 gb on azure blob storage in chunk using rest API from salesfroce using LWC.

Renugopal Balsamy 0 Reputation points
2024-10-16T17:46:07.98+00:00

Can you please share documents or links for uploading large files from salesforce to azure blob in chunks of data using LWC through the rest API?

Azure Blob Storage
Azure Blob Storage
An Azure service that stores unstructured data in the cloud as blobs.
3,201 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Deleted

    This answer has been deleted due to a violation of our Code of Conduct. The answer was manually reported or identified through automated detection before action was taken. Please refer to our Code of Conduct for more information.


    Comments have been turned off. Learn more

  2. Keshavulu Dasari 4,840 Reputation points Microsoft External Staff Moderator
    2024-10-16T20:34:24.93+00:00

    Hi Renugopal Balsamy,
    Welcome to Microsoft Q&A Forum, thank you for posting our query here!
    Uploading large files to Azure Blob Storage in chunks using the REST API from Salesforce with (LWC) involves several steps.

    Steps to Upload Large Files in Chunks

    1. Divide the File into Chunks: Split the large file into smaller chunks. The Azure Blob Storage REST API supports a maximum chunk size of 4 MB.
    2. Create a New Blob: Use the “Put Blob” operation to create a new blob in your Azure Blob Storage account.
    3. Upload Each Chunk: Use the “Put Block” operation to upload each chunk of the file.
    4. Commit the Blocks: Use the “Put Block List” operation to commit the list of blocks that have been uploaded. 

    Additional Information

    • AzCopy Tool: Consider using the AzCopy tool for high-performance uploads. It supports concurrency and parallelism, which can be beneficial for large files.

    These should help you get started with uploading large files from Salesforce to Azure Blob Storage using LWC and the REST API.

    Please let us know if you have any further queries. I’m happy to assist you further.   


    Please do not forget to "Accept the answer” and “up-vote” wherever the information provided helps you, this can be beneficial to other community members.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.