Just trying to familiarise and understand the following tutorial on how to access the blobs using Java :- https://learn.microsoft.com/en-us/azure/storage/blobs/storage-quickstart-blobs-java?tabs=powershell%2Cmanaged-identity%2Croles-azure-portal%2Csign-in-azure-cli
I am familiar with Java but not Azure Blob Storage. I have some basic questions around the API that I hope someone will be able to clarify :-
• A “data” folder is created and this folder is where the blob data files will be created and stored. I presume what this is really saying is that the downloaded blobs will be “saved” to the “data” folder. The actual storage of the blob is still in the Azure cloud. Is my understanding correct ?
• Any content downloaded to the “data” folder can be viewed as temporary area where content of blob are saved into a unique filename. The file in the “data” folder can be deleted. Should the blob content be needed again, the blob can be downloaded again to a file in data folder. ?
• Each BlobClient instance is associated with one blob ?
• The BlobClient instance can be used to upload content into blob or download the blob content ?
• The blob is identified by the filename passed when the BlobClient is created ?
• Each blob stored must be associated with unique filename ?
• The blob stored with 1st line will be over written with the content of filename by the 2nd line line 1 - blobClient.uploadFromFile(localPath + fileName); line 2 - blobClient.uploadFromFile(localPath + fileName);
The point I just wanted to confirm was that content stored by a blob can be overwritten
• The sample code is basic. However, how are difficult scenarios like concurrency handled with the API ?
I appreciate these questions might seem simple, but it important to understand the basics, before moving forward.
Thank you for any help.
Pete






