Uploaded image for project: 'Tika'
  1. Tika
  2. TIKA-2961

Tika 在识别以caff开始的txt文档时会把它错误地识别为audio/x-caf 音频类型

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Critical
    • Resolution: Fixed
    • 1.20
    • None
    • core

    Description

      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 音频类型

      Attachments

        1. 1.txt
          0.1 kB
          Feng Jiao Jiang

        Activity

          People

            Unassigned Unassigned
            Mr_Jiang Feng Jiao Jiang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: