Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Security Error Loading Images

 
Java Studen
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic