Possible Duplicate:
How to get the image from project classpath in Servlet on Netbeans
I have written following codes in servlet file to read image which is saved in "header" folder of my projects classpath.
BufferedImage image = ImageIO.read(getClass().getResource("/header/header.png"));
But it is giving following error..
java.lang.IllegalArgumentException: input == null!
Here is my projects directory structure..
Plz guys help me in solving this error.Thanx in advance.