Download file in retool

Hello, I am new to retool. I have tried to download base64 image using utils.downloadFile(data, fileName, fileType) , but the downloaded image is indicating that, file format is not supported. Can anyone help me in this?

Its working for me now using this solution

Thank you

1 Like

Hi @Vinkal! Welcome to Retool 😊 Glad you were able to use that solution, and thank you for updating this thread with what worked for you! Super helpful to all the other users that run into this.

See you around the forums!

1 Like


I was using atob(myB64Data), and my pdf images werent rendering properly. Changing to
{base64Binary: pdf_base64.value} and removing the atob() function -- works great now.


1 Like