[ https://issues.apache.org/jira/browse/TIKA-2962?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16949861#comment-16949861
]
Feng Jiao Jiang commented on TIKA-2962:
---------------------------------------
是的,我发送问题时网络断开了一次,后面又重复发了一次,抱歉
> Tika在识别以caff开头的txt类型文档时,会错误地把它识别为 audio/x-caf
音频文件
> --------------------------------------------------
>
> Key: TIKA-2962
> URL: https://issues.apache.org/jira/browse/TIKA-2962
> Project: Tika
> Issue Type: Bug
> Components: core
> Affects Versions: 1.20
> Reporter: Feng Jiao Jiang
> Priority: Critical
> Attachments: 1.txt
>
>
> public String getFileType(File file) {
> String fileType = "";
> try {
> Tika tika = new Tika();
> fileType = tika.detect(file);
> } catch (Exception e) {
> e.printStackTrace();
> }
> return fileType;
> }
> 以上代码在识别以caff开头的txt类型文档时,会错误地把它识别为
audio/x-caf 音频文件
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
|