简体   繁体   English

如何在vue js中从base64字节下载文件

[英]How to download file from byte base64 in vue js

I have string of byte base64 我有一个字节为base64的字符串

let string = 'UEsDBBQABgAIAAAAIQBi7...'

How should I do, if I want download the file from the byte base64 in vue js 如果我想从Vue js中的base64字节下载文件,该怎么办

Thanks, any solution is so help me :') 谢谢,任何解决方案都可以帮助我:')

i found this nice library https://github.com/rndme/download 我发现了这个不错的库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 让我知道是否有用

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM