Hi Community,
I'm building an HTML-to-PDF generation flow and need to embed an employee photo (stored as an Appian Document) directly into an <img> tag as a Base64 data URL, like this:
<img>
<img src="data:image/png;base64,{BASE64_STRING}" />
I want to construct the value in an Appian expression as:
"data:image/png;base64," & base64Data
My question: Is there a built-in Appian expression function to convert a Document to a Base64 string?
Using the Appian document URL directly in <img src> does not work.
<img src>
Thank you
Discussion posts and replies are publicly visible
Meme02 said:Is there a built-in Appian expression function to convert a Document to a Base64 string?
There is no OOTB way to convert an Appian Document to Base64 not via expression functions, Web API, or Integration calls. The best and simplest approach is to use the documentToBase64String function from the More Document Tools plugin