Convert document to base64 string

Certified Senior Developer

Hi all,

We need to send a document from appian to an external system which receives document as a part of json with document converted into base64 string. 
For example:
{

"name":"Document_name",

"document":"base64 string encoded document"
}

The request json will look something like this. How to convert document into base64 string in appian? Do we have any plugins for that??

  Discussion posts and replies are publicly visible

Parents Reply
  • 0
    Certified Senior Developer
    in reply to Sunil Choudhary

    I tried using 1st method, we had error like file too complex from the integration response. So not sure if this is the way to do it. 
    its saying to use todocument() which is returning the document name. The external system needs the document in base64 string.

    the base64 string should look something like this : "VGVzdCBkb2N1bWVudCA3ODM0dGhxaXJ1aXJnaFdSTEdKUVJPR0hBRVJWQU5HT0xRUkhHT0xRUkdKSU9HSFFLQU5SU0dPcXczNWhnb2h3cmthdnJpb2d1cWdqYWhma3JnS0ZVR0hL"

    Will this be taken care if we use todocument inline with json??

Children