I am trying to get all image files from a site, and show these in a gallery. So people can scroll through all the images like I did here with localy stored images.
After some searching I found this example but it was only meant for single image loading, and not for all images within this online directory, using the following.
//Location of image directory with xxx images.
string directoryUrl = "http://www.foo.com/bar";
void DownloadTextures(string url)
{
try
{
WebRequest req = WebRequest.Create(url);
WebResponse response = req.GetResponse();
Stream stream = response.GetResponseStream();
}
catch ( Exception e)
{
print("stuff went wrong: " +e)
}
}
So how can I get all images out of online directory, and is this the right approach to get that done?
ps. It is all done in the unity engine, which has some limitations.