From the course: Extend Web Application Functionality on Microsoft Azure
Unlock this course with a free trial
Join today to access over 25,500 courses taught by industry experts.
Implementing the code to generate HTML content - Azure Tutorial
From the course: Extend Web Application Functionality on Microsoft Azure
Implementing the code to generate HTML content
- [Instructor] In this video, we're going to implement the code for generating the HTML content. So let's create a new private string. This is going to be static, static string, and let's name it GenerateHtmlContentForPet that receives the name, and the age, and the weight and also this byte array for the picture of the dog or pet. So let's do this here in Visual Studio so we can see all the parameters aligned. So that's perfect, and now the first thing that I want to do is create the mainTitle say Wisdom Pet Medicine and also the petTitle say, I want to use the name of the pet and the age years old. So now I'm ready to use the image data. I want to use that byte array to create a Base64 string since I want the HTML content to have the image itself. I don't want to use external images. In other words, I want the image to be embedded. So that's why let's execute Convert.ToBase64String and let's pass imageData…
Contents
-
-
-
Creating PDF files with Azure Functions and Puppeteer38s
-
(Locked)
Configuring the existing cloud resources1m 49s
-
(Locked)
Creating the repository and the Azure Functions project4m 21s
-
(Locked)
Implementing and testing the SQL trigger5m 8s
-
(Locked)
Implementing the code to generate HTML content7m 24s
-
(Locked)
Implementing the code to generate a PDF file using Puppeteer6m 56s
-
(Locked)
Implementing the Blob output binding in the Function4m 59s
-
(Locked)
Provisioning the Function app using the Azure Portal1m 9s
-
(Locked)
Manually deploying the Azure Function to the Function app4m 44s
-
-
-
-
-