I am new to JavaScript Objects and i got a list of object and in that object there is a property called signature which is BLOB, I am trying to decode it so I can display it as image, but when I use it, I am unable to use it.upon debugging in console, the returned item is a number but it has following structure
"{
"signature": "/9j/4AA"
but when I do console.log(typeof + deca);
it says number, following is my code
for (const sign of result){
const deca = atob(sign.signature);
console.log(typeof + deca);
console.log(deca) I get this
and using it to display like
<img *ngFor="let sign of selectedUser"
[src]="sign.imageData"
alt="">
Do I need to use trim or slice to cut off the "{
"signature":
part or I am doing something wrong?