This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes java security Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Reply locked New topic

java security

ji yan

Joined: Feb 15, 2002
Posts: 7
Hi to all:
I am trying to load a JPEG file into my applet but there is a security exception thrown. I read a tutorial that says there is no way I can load image files on a host into my applet, but I really need to use images in my applet. Can anyone please tell me how I can achive that?
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Ji,
You can place the images in the same directory as your applet on the server and then you can load it from there.
getImage( URL );
Ajith Kallambella

Joined: Mar 17, 2000
Posts: 5782
Please continue the discussion under this thread.
This duplicate thread is being closed....
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: java security
Similar Threads
security sandbox error while accessing applet from client machine.
Enabling a security manager for a single jar
Security manager
JApplet in browser (IE)
Security problem