View Full Version : Load Local Image File on Iphone

8 May 2012, 10:57 AM
I'm sure this has been asked/solved, but I can't find anything.

Basically. App needs to run offline. I can save an image in objective-c to the iphone storage for the app with a native shim. I don't want to base64 encode to localstorage, too bloaty and will run out of space....

Once I've saved the image, how do I reference it in the html image component? setSrc(....????...)

Or do I need to save the file to a specific location on the iOS (I don't care about Android for now)....


10 May 2012, 10:20 AM
Use a cache manifest. The browser will then cache it for offline use

20 Sep 2012, 12:43 PM
mitchellsimoens (http://www.sencha.com/forum/member.php?22216-mitchellsimoens), and How I'll do this?
My case is Android, I'm trying use :

items: [
xtype: 'panel',
src: 'http://localhost:2606/app/view/res/img/TopLifeRank.png/',
flex: 1

In my browser works fine, but if I put on device nothing appears :((
I try use "xtype: 'image' " but not works too.

How use manifest? Give-me a exemple.