Hi all,
Is there any way to convert an appian document to its base64 format?
Discussion posts and replies are publicly visible
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/.../)
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.
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.