How to read file in mendix using JavaAction

Hello Experts,   I’m doing JavaAction in my app. Where if i  upload a file in mendix,  I need to return that file in string format to read that uploaded file.   While writing a code in Java for this i’m getting error.   Need help for this.   Answers are really much appreciated!  
1 answers

This functionality already exists in the Community Commons module in the Marketplace.

Use the StringFromFile action in the Files folder.

Hope this helps.