FAQ
Cover
This is the archive Discourse for the Processing (ALPHA) software.
Please visit the new Processing forum for current information.

   Processing 1.0 _ALPHA_
   Programming Questions & Help
   Programs
(Moderators: fry, REAS)
   Remote image loading (BImage)
« Previous topic | Next topic »

Pages: 1 
   Author  Topic: Remote image loading (BImage)  (Read 442 times)
hgfischer

1364153513641535 WWW
Remote image loading (BImage)
« on: Apr 28th, 2003, 1:29am »

Hi,
 
I did a small experiment that continuously load a image from a camera. It worked (very well), when running from inside Processing IDE (Applet Viewer ?). But when I run from an applet, inside a page, I got errors. I think that is something related to applet security, but I don't know how to fix this. Following are the errors from Mozilla and IE different JVMs.
 
The applet is in here:
 
http://pontoip.com.br/feat/experiments/circulusmoirevideo/
 
The errors:
 
=============== Mozila
could not load image http://volcano.zapto.org:8080/axis-cgi/jpg/image.cgi?resolution=320x240
java.lang.NullPointerException
at circulusmoire.getSetPixel(circulusmoire.java:75)
at circulusmoire.drawCircle(circulusmoire.java:105)
at circulusmoire.loop(circulusmoire.java:46)
at BApplet.nextFrame(BApplet.java:267)
at BApplet.run(BApplet.java:225)
at java.lang.Thread.run(Thread.java:536)
 
=============== IE
com.ms.security.SecurityExceptionEx[BGraphics.pissImage]: cannot connect to "volcano.zapto.org"
at com/ms/security/permissions/NetIOPermission.check
at com/ms/security/PolicyEngine.deepCheck
at com/ms/security/PolicyEngine.checkPermission
at com/ms/net/wininet/WininetURLConnection.checkSecurity
at com/ms/net/wininet/WininetURLConnection.connect
at BGraphics.pissImage
at BGraphics.loadImage
at BGraphics.loadImage
at BApplet.loadImage
at circulusmoire.loop
at BApplet.nextFrame
at BApplet.run
at java/lang/Thread.run
could not load image http://volcano.zapto.org:8080/axis-cgi/jpg/image.cgi?resolution=320x240
java.lang.NullPointerException
at circulusmoire.getSetPixel
at circulusmoire.drawCircle
at circulusmoire.loop
at BApplet.nextFrame
at BApplet.run
at java/lang/Thread.run
 
 
Is possible to disable some security to permit applet reading remote images??
 
Thanks in advance!
 

[]s,

Herbert
benelek

35160983516098 WWW Email
Re: Remote image loading (BImage)
« Reply #1 on: Apr 28th, 2003, 4:13am »

i'm getting a "file not found" error on the source code...
 
_martin
Guest
Email
Re: Remote image loading (BImage)
« Reply #2 on: Apr 28th, 2003, 7:08am »

p5 ide is application. applet version will give you problems as there are security exceptions.
 
_martin
Guest
Email
Re: Remote image loading (BImage)
« Reply #3 on: Apr 28th, 2003, 7:11am »

you can refer to http://java.sun.com/sfaq/ for getting around the applet security issue. good luck!
 
pollux

WWW Email
Re: Remote image loading (BImage)
« Reply #4 on: Apr 29th, 2003, 5:03am »

had sort of the same problem, and solved it wit a php file on my server that catches the data i need. maybe if you find one of those cgi that copies files from servers, and then catch the file locally, it'll work...
 
http://www.cgi-resources.com/
 
hope it helps.
 

pollux | www.frwrd.net
fry


WWW
Re: Remote image loading (BImage)
« Reply #5 on: May 1st, 2003, 4:41pm »

it's in the java applet security docs, but the basics are that the applet can only connect to the server from which it came--so this affects where images can be grabbed from as well. so unless the applet .jar file and html are coming from http://volcano.zapto.org:8080, it ain't gonna happen.
 
hgfischer

1364153513641535 WWW
Re: Remote image loading (BImage)
« Reply #6 on: May 1st, 2003, 11:36pm »

Thanks for the ideas. And sorry for answering so late.
I was expecting to receive some warning on my email address, that I got replyes here.
 
So, I solved the problem, doing a PHP that do the "middleware" beetween the camera server and my applet.
 
I'll do some more tests and later I'll post here, so all you can see my experiment.
 
Thanks!
 

[]s,

Herbert
Pages: 1 

« Previous topic | Next topic »