kennethjiang/js-file-download

Base64 Data

fabioloreggian opened this issue · 1 comments

I try and send through base64 data and it just creates a file with the data as text.

Any help or advice?

const buf = Buffer.from(data, 'base64'); fileDownload(buf, document.name, mime[1]);