How to read file objects(which are grouped into custom folder) present under resource Project path folder

0
Team, I have a new project created and would like to read file objects(ex: csv/xml/..) using custom Java action, which would be grouped inside a custom folder(that is again placed under resources project path,  does this possible ?   Appreciate your inputs. Thanks.
asked
2 answers
0

Check out the code from the AppStore App FileHandling https://appstore.home.mendix.com/link/app/63667/. That will get you started.

answered
0

Take a look at the Community Commons module in the App Store.

There are methods such as StringFromFile in there that do similar things to what you need. The Java source code is available on GitHub for you to download and see how this is done.
https://github.com/mendix/CommunityCommons

In this case it uses getFileDocumentContent from the Mendix Core API to get an InputStream from a FileDocument.

 

answered