Convert base64 to attachment

Hello,

I’m using external APIs and external database to store file and documents(.png, .jpeg, .pdf, .doc, .txt, etc)
Those APIs are used in Service node and through the bot I’m able to store the files in external database in base64 format.

Now when i fetch those files I use GET api in service node and the bot returns the base64 format to the user.

Is there a way where I can convert that base64 to attachment through script and the original attachment is displayed to the user?

Hi @ishan.rahane ,

Welcome to Kore.ai Community.
Please check the below community post which might be helpful for you requirement.

Thank you,
Srujan Madderla
Kore.ai Community Team

Is there any alternate way other than the download url link which is one time access?

And is it possible for the bot to display the file/document (.png , .pdf , .docx , .jpg , .txt , etc) to the user if the user asks for it.

Thank you for your reply. But my requirement is exact opposite. I want to convert the base64 string into file