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

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