File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Murach's Java Servlets and JSP this week in the Servlets 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
Image Upload to a directory via a HTML form & Servlet?
Accessing image files in an applet
icons facing in wrong direction
How to implement download package to my computer from appointed address
BufferedImage to ServletOutputStream: Black Box