Skip to content

Instantly share code, notes, and snippets.

@jazzedge
Created July 23, 2017 17:02
Show Gist options
  • Select an option

  • Save jazzedge/c230182b306b0d7177e7af58a22d4cdc to your computer and use it in GitHub Desktop.

Select an option

Save jazzedge/c230182b306b0d7177e7af58a22d4cdc to your computer and use it in GitHub Desktop.
Bot - Load image from Blob storage
Display BASE64 file - https://stackoverflow.com/questions/8499633/how-to-display-base64-images-in-html
<img src=' ... '/>
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;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment