We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpSyntax Questions › how to loadImage from URL (AccessControlException)
Page Index Toggle Pages: 1
how to loadImage from URL (AccessControlException) (Read 467 times)
how to loadImage from URL (AccessControlException)
Sep 21st, 2007, 11:07pm
 
When I try to run this Processing code in a web page applet, ...

Code:

PImage img = loadImage("http://mysite.com/img.jpg");


I get the following run-time error (in my web browser Java console).

java.security.AccessControlException: access denied (java.net.SocketPermission ...

I know there is some kind of workaround using PHP or "signing" your applet, but I can't find the right page where this is explained on the Processing site.

Can anyone point me in the right direction to find the step-by-step instructions explaining how other people have solved this?

thanks in advance,
 David Jones
dxjones@gmail.com
Page Index Toggle Pages: 1