[Vuejs]-Dispalying a base64 string as an image vue.js

0๐Ÿ‘

โœ…

I have solved the issue by binding to previewLogo2.src instaed of previewLogo2

Inside JS

let previewLogo2 = new Image();
previewLogo2.src = `data:image/png;base64,${fileList[i].file}`;

Inside Template

<b-img :src="previewLogo2.src" class="certificate-logo-size logo2 pt-2"></b-img>

Leave a comment