Way to convert image into base 64 string without saving it in database

Hi All,

We have requirement where we need to convert image uploaded in appian as a document into base64 string.

We do not want to save it into database.

Is there any way to do this?

Thanks In Advance 

  Discussion posts and replies are publicly visible