Skip to main content
saahilm0002
October 21, 2022
Question

Anyways to convert appian documents to base64 format?

  • October 21, 2022
  • 5 replies
  • 0 views

Hi all,

Is there any way to convert an appian document to its base64 format?

5 replies

harshitb6843
October 21, 2022

If you need to send that doc in an integration, then you can directly pass that doc and it will auto convert it. 

bradc0001
December 9, 2022

Did you come up with a solution for this?  I am trying to get the base64 of a document without using the base64 to DB option and this is not for an integration use case.

komalj3844
December 12, 2022

Can you like try this I am not sure if it work successfully , but if you can get the text from the document (readtextfromfile: please look for this plugin  community.appian.com/.../read-data-from-a-text-file) , and create a stored procedure which convert the text into base 64 (output ). Send the text into Stored procedure and get base 64 (database.guide/.../)

mikes0011
Brainy
December 12, 2022

Plaintext can be converted to Base64 encoding in Appian using OOTB functions in an expression rule (i know, since I wrote one).  The problem is, this is quite a bit different from getting the base64 conversion of a file - which there's no assumption will be a plaintext ".txt" file, for instance.

There used to be functionality built-in to Appian which allowed back-and-forth conversion, but a few years ago it was "disappeared".  Now I think the only remaining way to handle this (if any), *might* be to set up some sort of in-environment API call, but if so, I don't know how to do it.

bradc0001
December 12, 2022

Thanks for the response.  I thought I remembered that functionality too.

My current thought is to use the 'Base64 to Database Services' plug-in to write the value to a DB, then immediately query it back into the process for use in an HTML doc I'm trying to create.  It's a little messy, but the images I'm converting are <1KB, and is pretty efficient in my testing thus far.