How to read the data in the uploaded word file in jfinal

at present, there is a need to read the text data in word or pdf documents, and then convert them into html strings,

html strings

. My current idea is:
use the file upload function of element-ui to upload a word or pdf document, then parse the file in the background,
form a html string, and then store it in the database

.

the backend uses the jfinal framework. The problem encountered in the limitation is how to read the text content in the document
using getRequest (). GetInputStream (); the method depends on the failure
before using the spring framework, there is a file.getInputStream (); the method
does not know how the jfinal framework is going to implement it.
I hope everyone can help.
Thank you very much

.
May.10,2022

this kind of problem can be solved
https://www.jfinal.com/doc/3-7


by taking a look at the official website.
FileInputStream fis = new FileInputStream (file.getFile (). GetPath ());

Menu