chungchunwang / Budibase-File-Upload

Upload files in your Budibase app!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Decode Serialized JSON Back to Binary Object After Upload

chadgriff opened this issue · comments

I have a use case where when a user uploads a file using the Budibase-File-Upload plugin, I would like to send out an email with the same file attached to it. I am using an MS SQL database with a nvarchar(max) field configured to accept the JSON string. Is there a way to pull the string into some Javascript that can decode it back into a file? All of the files involved with this use case would be .pdf files.