Skip to main content
Known Participant
Apr 19, 2024 9:28 AM UTC
Question

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

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
Inspiring
Apr 19, 2024 9:32 AM UTC

What's the error you are getting??

Known Participant
Apr 19, 2024 9:38 AM UTC

500 internal erro

stefanhelzle0001
Brainy
Apr 19, 2024 9:33 AM UTC

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

Known Participant
Apr 19, 2024 9:37 AM UTC

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
Brainy
Apr 19, 2024 9:44 AM UTC

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
Genius
Apr 19, 2024 9:56 AM UTC

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.

Known Participant
Apr 19, 2024 10:00 AM UTC

Thanks Mathieu, will check this plugin