Download photos from web with Corona sdk

 

I am currently developing an app which will need around 200 photos (medium resolution) to work well. I thought it would be better to download these images the first time a user opens the app so that it appears to take up less space when they download it.

To do this I tried using this from corona’s documentation:

network.download( imagelink, “GET”, networkListener, imagename, system.TemporaryDirectory)

However this does not seem to download images consistently depending on my internet connection. This may because I am hosting my images on webs.com. Is there any easier and more dependable way to achieve this?

the error message I get is: ERROR: network request failed: “image.com/image.png” [-1001: The request timed out.]