Hello,
My team has recently bumped into an issue when adding adding an img tag src:
//print logo image
if (!string.IsNullOrEmpty(logoimage) && string.IsNullOrEmpty(companyname))
{
var ext = logoimage.Substring(logoimage.LastIndexOf('.')).ToLower();
PdfFormat.Append("<div class='icon'><img src='" + logoimage + "' alt='companylogo' /></div>");
}
The image is stored in our Kentico Media Library.
When we output the logoimage variable, the url is correct but html doesn’t output the image correctly. Can you provide any guidance into how diagnose the error? The same code worked properly 1 month ago.