ServletContext getResourceAsStream()

Using the method getResourceAsStream(), a Servlet can use any file on the system (or Web application in WEB-INF folder) and load it. To load, the Sevlet container does not need a traditional class loader. This method returns an object of InputStream that refers the file passed as parameter. The InputStream (a byte stream) object can …

ServletContext getResourceAsStream() Read More »