I have a vue file like this,
export default {
data(){
return{
info: {
name: '',
image: '',
},
errors: []
}
},
created: function(){
this.getInfo();
},
methods: {
getInfo: function(){
this.info.name = response.data.results[0].name;
this.info.image = response.data.results[0].image;
}
}
}
I am passing data from this file into a child Vue component. The child component is as follows,
<template>
<div class=ui items>
<div class=item>
<div class=ui small image>
{{info.image}}
</div>
</div>
</div>
</template>
<script>
export default{
props:['info']
}
</script>
My image is stored as a blob in a MySQL database. When I run my application, the image appears as binary data on the UI. The object appears like this,
Can anybody here help me in displaying the image? Thank you very much!