Created
July 23, 2017 17:02
-
-
Save jazzedge/c230182b306b0d7177e7af58a22d4cdc to your computer and use it in GitHub Desktop.
Bot - Load image from Blob storage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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