How to load image from web server, store locally and display?

#1

I am trying to create a small app has to downloads assets (images), store them locally and display them.

I tried the documentation and also the forums, but I can’t find a full roundtrip, e.g. where to start and how to do this. Any help would be appreciated.

/heiko

0 Likes

#2

So you’ll probably need all of these for what you asked for:

HTTP fetch: https://fuseopen.com/docs/fusejs/http.html

Filesystem: https://fuseopen.com/docs/fuse/filesystem/filesystemmodule.html
Storage: https://fuseopen.com/docs/fuse/storage/storagemodule.html

Imagetools: https://fuseopen.com/docs/fuse/imagetools/imagetools.html
Image: https://fuseopen.com/docs/fuse/controls/image.html

0 Likes

#3

Thanks, Andrew.
From your suggestion, I assume that I have to download the images first via JavaScript, store them as bas64 enccoded strings and display them on request.

0 Likes

#4

Yeah, although, you can use the imagetools to convert the image from base64 to an image before storing it.

0 Likes