I have an excel file in src/main/resources (/resources/files/templates). I want to read it to InputStream. I am not finding the right syntax for this.
String fn = "/resources/files/censusTemplates/SimpleStandardTemplate.xlsm";
try {
InputStream inputStream = new URL("file:///" + fn).openStream();
Above is not working. I think the path is wrong. How to give correct path for files stored in resources?