wood burning stoves*
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Security Error Loading Images" Watch "Security Error Loading Images" New topic
Author

Security Error Loading Images

Java Studen
Greenhorn

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:
java.lang.NullPointerException

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

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: http://aspose.com/file-tools
 
subject: Security Error Loading Images
 
Similar Threads
Image Upload to a directory via a HTML form & Servlet?
BufferedImage to ServletOutputStream: Black Box
Accessing image files in an applet
icons facing in wrong direction
How to implement download package to my computer from appointed address