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
- 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.
- Create a New Blob: Use the “Put Blob” operation to create a new blob in your Azure Blob Storage account.
- Upload Each Chunk: Use the “Put Block” operation to upload each chunk of the file.
- 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.