tika-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Feng Jiao Jiang (Jira)" <j...@apache.org>
Subject [jira] [Commented] (TIKA-2961) Tika 在识别以caff开始的txt文档时会把它错误地识别为audio/x-caf 音频类型
Date Sat, 12 Oct 2019 01:36:00 GMT

    [ https://issues.apache.org/jira/browse/TIKA-2961?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16949862#comment-16949862
] 

Feng Jiao Jiang commented on TIKA-2961:
---------------------------------------

是的,当时我和我的同事使用程序随机生成了一些txt文档对tika进行测试,发现部分txt会被错误地识别为音频文件,可能不只以caff开头的,还有部分测试资料找不到了

> Tika 在识别以caff开始的txt文档时会把它错误地识别为audio/x-caf 音频类型
> -----------------------------------------------
>
>                 Key: TIKA-2961
>                 URL: https://issues.apache.org/jira/browse/TIKA-2961
>             Project: Tika
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 1.20
>            Reporter: Feng Jiao Jiang
>            Priority: Critical
>              Labels: newbie
>         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)

Mime
View raw message