Referencing file from JavaAction

0
Hi all, I need to reference a .pem file (openssl public key) from a custom java action. Where should I put the file and how do I reference it? Files.readAllBytes(Paths.get(filepath)); Thank you kindly.  
asked
1 answers
0

You should put this file in the resources folder.

Then to access it from java you can  use

Core.getConfiguration().getResourcesPath()
 https://apidocs.mendix.com/7/runtime/com/mendix/core/conf/Configuration.html#getResourcesPath--

Hope this helps

answered