Java Action to read a text file

Hello Experts,   I have consumed Java Action ( Successfully.   Now my requirement is : upload the document (.txt) file and pass it to the java action recieve the document (.txt) file in java and write a java code to read the txt file return the string recieve the string in mendix MF and show in a popup.   While writing a code for this in  Java i’m getting error. Can anyone please give me the suggestion  to achieve this requirement.   Answers are much apprecited!    
1 answers

You could use the java action StringFromFile from CommunityCommons module. It takes file document as input and returns text content of the file document as a string.


Community Commons