Getting images from website

Hello. 
I’m thinking about making a game in corona sdk but i need my program to get images from website. And i also need it to access that website multiple times. But i don’t know how to do both of these things. So i would be thankful for any help. :slight_smile:
Gerard

I marked these as requiring ssk2, but you should be able to work out what I’m doing w/o ssk2:

Thank you for your answer, it helped me understand using network in corona sdk better. But my problem is that i don’t have a static url of image. And that’s because i want to use a site that generates random images, so the url of image is different every time you refresh a page (and i want to do that multiple times in one run of my game). So if you have some idea i would be thankful. :slight_smile:

That sounds more like you’ll need to make a POST to a PHP script/endpoint.  The PHP script will then generate a new image and return the name/path to that image in the response.

Finally, with that path you can use the fixed path method I provided.

That is how I have done it for past clients.  (Before you ask, I didn’t write the PHP script.  That was handled by someone else.)

I marked these as requiring ssk2, but you should be able to work out what I’m doing w/o ssk2:

Thank you for your answer, it helped me understand using network in corona sdk better. But my problem is that i don’t have a static url of image. And that’s because i want to use a site that generates random images, so the url of image is different every time you refresh a page (and i want to do that multiple times in one run of my game). So if you have some idea i would be thankful. :slight_smile:

That sounds more like you’ll need to make a POST to a PHP script/endpoint.  The PHP script will then generate a new image and return the name/path to that image in the response.

Finally, with that path you can use the fixed path method I provided.

That is how I have done it for past clients.  (Before you ask, I didn’t write the PHP script.  That was handled by someone else.)