Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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