如果我在POI jar中使用HMEFContentsExtractor,它只能提取html,它不能从winmail.dat(从oulook发送的附件邮件)中提取图像内容,是否有任何jar文件来执行此操作&解释如何使用它。
HMEFContentsExtractor ext = new HMEFContentsExtractor(new File(winmailFilename));
File dir = new File(directoryName);
File rtf = new File(dir, "message.rtf");
if(! dir.exists()) {
throw new FileNotFoundException("Output directory "+dir.getName()+" not found");
}
HMEFMessage msg = new HMEFMessage(new FileInputStream(winmailFilename));
msg.getAttachments();ext.extractMessageBody(rtf);