aspose file tools*
The moose likes Beginning Java and the fly likes Security Error Loading Images Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Security Error Loading Images" Watch "Security Error Loading Images" New topic

Security Error Loading Images

Java Studen

Joined: Jul 05, 2011
Posts: 2
I keep getting an error when I try to load an image. I've checked to make sure the directory has full access control and not set for read only. I'm really not sure what I'm doing wrong, I'm following a book, exactly letter for letter, but still getting this error. Here is a snippet of code, and if anyone can catch what is wrong, i'd really be greatful.

When I run I get an Uncaught error fetching image:

When I run the debugger, I find that the acc property has a security error, but I dont know why.
Java Studen

Joined: Jul 05, 2011
Posts: 2
Ack, figured it out, sorry.

I had placed the png file in the src directory, not the bin directory.
I agree. Here's the link:
subject: Security Error Loading Images
Similar Threads
How to implement download package to my computer from appointed address
Accessing image files in an applet
Image Upload to a directory via a HTML form & Servlet?
icons facing in wrong direction
BufferedImage to ServletOutputStream: Black Box