yoppie97
yoppie97

Reputation: 177

How to download file from byte base64 in vue js

I have string of byte base64

let string = 'UEsDBBQABgAIAAAAIQBi7...'

How should I do, if I want download the file from the byte base64 in vue js

Thanks, any solution is so help me :')

Upvotes: 1

Views: 4134

Answers (1)

Cosimo Chellini
Cosimo Chellini

Reputation: 1730

i found this nice library https://github.com/rndme/download

you just import this in you library and then

download("data:image/gif;base64,R0ln5+......n4/+oMSAAOw==", "dlDUrlBin.gif", "image/gif");

let me know if is useful

Upvotes: 2

Related Questions