Skip to main content
nguyenb6532
May 18, 2026
Solved

How to convert an Appian Document (image) to a Base64 string?

  • May 18, 2026
  • 5 replies
  • 1 view

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 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.

Thank you

    Best answer by shubhama926776
    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

    5 replies

    shubhama926776
    May 18, 2026
    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

    mikes0011
    Brainy
    May 18, 2026
    use the documentToBase64String function from the More Document Tools plugin

    Thanks, I had somehow missed that there is (again) a plug-in that allows us to do this.  I know there are system overhead implications but there are some corner use cases that will be much easier with this sort of capability present.

    nguyenb6532
    May 19, 2026

    [mention:9861aef97eb2483a8b76175d9eda1e37:e9ed411860ed4f2ba0265705b8793d05]  [mention:b45a4f6a20b14a008e4e0ec732a8bf98:e9ed411860ed4f2ba0265705b8793d05] 

    Thank you for your support.
    I tried this plugin and it worked successfully.