Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static void BlobUrl()
- {
- var account = new CloudStorageAccount(new StorageCredentials(accountName, accountKey), true);
- var cloudBlobClient = account.CreateCloudBlobClient();
- var container = cloudBlobClient.GetContainerReference("container-name");
- var blob = container.GetBlockBlobReference("image.png");
- blob.UploadFromFile("File Path ....");//Upload file....
- var blobUrl = blob.Uri.AbsoluteUri;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement