So I'm trying include my logo in the PDF output. I've converted it to base64.The text is 5000 characters, so I'm storing it an a separate list, due to the 256 character limitation. I put the base64 in a dictionary and use Render Text Template. This is not working. Am I on the wrong track?
Is it a PDF where you're trying to add an image? Probably it's better to use * Convert HTML to PDF in that case and save an HTML template with an image included directly to the PDF?
To insert an image the HTML code should have an img tag: like
<img src="the base64 code">
You can also use an URL but in that case the image be publicly anonymously available (no authentication).
To isolate the issue try to add the img tag (just a static base64 value, not a variable) to your HTML and then generate a PDF.
Also you can try to open the HTML code in the browser and check if it shows the picture. If it works then the WAP action also should be able to insert the image.
Yeah, my original post was how to get around the 256 character string length limit. My base64 character is about 5000. I was asking how you folks got around that. It's not clear from the article (which still isn't fixed). How do include a string in the img src base64 that's larger then the character length limit?
I have this working. I store the base64 in a separate list. Then the workflow loads it into a multiline field in the item. <img src="data:image/png;base64, [%Current Item:Logo%] />.