load remote images

Hello all…
I have a little question

I have a list list view that when pressed will load several imagens ( based on the xml loaded ).
Those images will apear on de SlideView Panel.
Im using the SlideView.lua in samples files…

Ok my question is this:
When the files are loaded localy like the sample… everything goes ok…
But what is the best aprouch when dealing with remote imagens…

Should i only load the image when the user slide left or right
for instance all the slide panels are black and when slide changes the image will load with display.loadRemoteImage ?

Is that possible to make cache for that images?

Regards,
B

[import]uid: 17035 topic_id: 6448 reply_id: 306448[/import]

You could use loadRemoteImage on the first viewing of the screen and save it to the DocumentsDirectory and then every time the screen is viewed from then on check if the image is still there, if so display it else download it and then display it. [import]uid: 5833 topic_id: 6448 reply_id: 22352[/import]

yes , that exactly what i did…
another question…
When the user delete his app from iphone does all the objects saved in the DocumentsDirectory erased?

Regards,
B [import]uid: 17035 topic_id: 6448 reply_id: 22357[/import]

I’m pretty sure they would be, at least I’d like to think they are anyway. [import]uid: 5833 topic_id: 6448 reply_id: 22367[/import]

:wink:
thank you [import]uid: 17035 topic_id: 6448 reply_id: 22396[/import]