@trollanfer wrote:
I have stored images in a local pouchdb, and want to retrieve them…
my html
<img [innerHTML]="getimage('png.png')">
page function
getimage(file){ this.pouch.getimagepouch(file).then((res)=>{ return res; }); }
database function :
async getimagepouch(img){ console.log('appel getimagepouch'); try{ let blob = await this.localdbimages.getAttachment(img, img); let url = 'src='+ URL.createObjectURL(blob); return url; } catch (err){ console.log(err); } }
It seems like there is an infinite loop, (recursive ?), getimage gets called again and again…
I get these url in getimagepouch :
src=blob:http://localhost:8100/57813597-d5f0-4f0b-a48a-a31ea6bf5066
After some time, I get this error :
Lazy require of app.binding did not set the binding field
Any clue??
Posts: 1
Participants: 1