Offline images in ionic


#1

I am working on offline images in ionic apps. The concept is when i use pull to refresh.It will retrieve images from live site and store in local for offline images.


#2

I guess someone had the same question.

http://forum.ionicframework.com/t/download-images-from-php-server-and-save-it-in-img-folder/9357


#3

There is no tutorial for that.Only they suggest the ng-cordova file plugin.


#4

On the official ngCordova website you can find a small documentation of how you work with that plugin:

http://ngcordova.com/docs/plugins/fileTransfer/


#5

Another solution is once you’ve downloaded the image, you can store it as a base64 string using local storage.


#6

bumping old thread, is the filetransfer plugin still recommended practice, is there a link on specifying save locations, what path is recommended and what are the options

base64 in cordova-sql-lite sounds interesting but i feel like performance woudl be slower than just having them locally accessabile as files…