//Generate image | |
var memoryStream = GenerateBlogPostMetaCardWithDescription("{ " + metaCardDescription.PostMetaTagImageDescription + " }"); | |
//Create the image in Blob Storage | |
CloudBlockBlob blob = blobContainer.GetBlockBlobReference($"{metaCardDescription.PostTitle}.png"); | |
blob.Properties.ContentType = "image/png"; | |
blob.UploadFromStream(memoryStream); | |
log.LogInformation($"Post image card generation for post {metaCardDescription.PostTitle} was successful. Image was uploaded to Blob Storage"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment