How can I read a file deployed as a resource within a EAR or a WAR?
I want to create a new FileInputStream calling the constructor below.
java.io.FileInputStream.FileInputStream(String)
But the file I want to read is located on path “/glm/src/main/resources/excel_templates” inside the WAR file.
Is it possible to create a FileInputStream with a EAR or WAR based filepath?
Try something like this: