Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
    Bookmark Topic Watch Topic
  • New Topic

java security

 
ji yan
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
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
Posts: 1492
  • Mark post as helpful
  • send pies
  • Report post to moderator
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 );
Regards,
Manfred.
 
Ajith Kallambella
Sheriff
Posts: 5782
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please continue the discussion under this thread.
This duplicate thread is being closed....
 
    Bookmark Topic Watch Topic
  • New Topic