How to get the text content files with tika 1.6?
问题 Hi i try get the text content from any files in this list pdf,txt,doc,docx and odt the implementation with tika previously worked fine but now is broken, The code is it: ``` public void uploadFile(FileUploadEvent event) throws Exception { UploadedFile file = event.getUploadedFile(); byte[] data = file.getData(); Tika tika = new Tika(); string = tika.parseToString(new ByteArrayInputStream(data)); ... } ``` Any ideas? , bad implementation ? 回答1: You need to add tika-parsers. For example with