Oh, and...nice brain...
Thank you :lol:
How it that done and why? It should be quite transparent for the server if a browser is reading the files or an applet is. However, how about putting the files in the applet's jar and load them from there.
Thanks for the hint. I tried that, no luck -- same error.
I have no idea why it happens, but my best guess is my providers security issues, here's the error I get:
Loading Texture...slices/0.png
java.security.AccessControlException: access denied (java.io.FilePermission slices/0.png read)
at java.security.AccessControlContext.checkPermission(AccessControlContext.java:269)
at java.security.AccessController.checkPermission(AccessController.java:401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkRead(SecurityManager.java:863)
at sun.awt.SunToolkit.getImageFromHash(SunToolkit.java:472)
at sun.awt.SunToolkit.getImage(SunToolkit.java:486)
at com.threed.jpct.Texture.loadTexture(Unknown Source)
at com.threed.jpct.Texture.<init>(Unknown Source)
at BrainVision3.loadSlices(BrainVision3.java:226)
at BrainVision3.init(BrainVision3.java:69)
at sun.applet.AppletPanel.run(AppletPanel.java:354)
at java.lang.Thread.run(Thread.java:552)