Guest User

Untitled

a guest
Aug 8th, 2015
6,272
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. static void BlobUrl()
  3. {
  4. var account = new CloudStorageAccount(new StorageCredentials(accountName, accountKey), true);
  5. var cloudBlobClient = account.CreateCloudBlobClient();
  6. var container = cloudBlobClient.GetContainerReference("container-name");
  7. var blob = container.GetBlockBlobReference("image.png");
  8. blob.UploadFromFile("File Path ....");//Upload file....
  9. var blobUrl = blob.Uri.AbsoluteUri;
  10. }
RAW Paste Data