Hi all,
I'm working on an art project that crawls the web for specific images and run into the following loadImage() problem for some of the images (most of them do work):
I'm working on an art project that crawls the web for specific images and run into the following loadImage() problem for some of the images (most of them do work):
- String imgURL = "http://www.ikonrtv.nl/uploads/uploadedImgs/alfred hitchcock.jpg";
PImage img = null;
try {
img = loadImage(imgURL);
}
catch (Exception e) {
println("Exception "+e);
}
size(600, 600);
if (img != null) image(img, 0, 0);
println("Done");
For this specific URL the whole thing hangs: no exception error, no timeout, no 'Done'... So it hangs up my entire script.
When I paste the URL into a browser the image shows up fine.
When I use a different URL for instance "http://farm2.staticflickr.com/1267/1396796938_95aaceee6a_z.jpg" everything works fine...
How to fix this? Using a proxy or so? It's really very annoying!
Thanks!
Rolf van Gelder
When I paste the URL into a browser the image shows up fine.
When I use a different URL for instance "http://farm2.staticflickr.com/1267/1396796938_95aaceee6a_z.jpg" everything works fine...
How to fix this? Using a proxy or so? It's really very annoying!
Thanks!
Rolf van Gelder
1