Skip to main content
April 19, 2024
Question

How to send Appian document in base 64 format to external system through Appian Integration?

  • April 19, 2024
  • 9 replies
  • 0 views

Hi All

 I am calling one web service through Appian Integeration and getting the below error.

I want to send the appian document in base 64 string.

I checked in appian community and found that appian automatically convert document to base 64 string but facing issue.

the request body of web service is in xml format.

Please refer the below screenshots.

In below request i have to send document in content tag and it should be in base 64 string.

the ri!Attachments is document type.

Many Thanks in advance.

9 replies

venkatrea696188
April 19, 2024

What's the error you are getting??

April 19, 2024

500 internal erro

stefanhelzle0001
April 19, 2024

Because of memory protection restrictions, Appian does not directly support creating base64 encoded strings.

April 19, 2024

so is there is any other way to send a document in base 64 string
like any smart service to convert document to base 64

stefanhelzle0001
April 19, 2024

Yes, there are. But not for your specific use case to insert that base64 encoded file into a XML string.

Does that API only understand XML? With JSON, it would just work OOTB.

mathieud0001
April 19, 2024

You could try using this plugin:  [mention:e7b082a6b98049899e3541011e57f30e:f7d226abd59f475c9d224a79e3f0ec07] 

 [mention:b45a4f6a20b14a008e4e0ec732a8bf98:e9ed411860ed4f2ba0265705b8793d05] also wrote an expression that you can find here: [mention:1b34681ee27446639c1c6d6b6cadcc04:46448885d0e64133bbfbf0cd7b0fd6f7] 

As Stefan has mentioned, be mindful of the impacts on memory usage when using these approaches.

April 19, 2024

Thanks Mathieu, will check this plugin