Is there a way to identify the mime type (in aspose total java ) of a given file and then call the corresponding api's to open the document. The files that enter into the system do not have an extension and we do not want to rely on the ext if any. We use Tikka to identify the file type but for docx and pptx files it returns application/x-tika-ooxml. Based on this there is no straighfwd way to determine whether to call Document doc = new Document(file.getAbsolutePath()); or Presentation pres = new Presentation(file.getAbsolutePath());
any suggestions please.