I\'m trying to access a file in my project. But getResource method returns null.
This is how my project looks like:
Try using / prefixing.
/
Thread.currentThread().getContextClassLoader().getResourceAsStream("/xxx.png")