title: Apache Tika not working to convert tiff files to text file
body: <p>I am trying to use Apache Tika for converting tiff files to text format. I have seen the Javadoc, where they have <strong>TiffParser</strong>, so I guess it should convert tiff to text format. 
  I tried using it in <strong>windows</strong> and <strong>ubuntu</strong> machine from command-line as well as java code. But it's not extracting the text from tiff.</p>
  
  <p><strong>In command line:</strong>
  java -jar tika-app-1.13.jar -t -i tiffInputFolder -o tiffOutputFolder</p>
  
  <p><strong>In Java:</strong></p>
  
  <pre><code> import java.io.File;
   import java.io.FileInputStream;
   import java.io.IOException;
  
   import org.apache.tika.exception.TikaException;
   import org.apache.tika.metadata.Metadata;
   import org.apache.tika.parser.ParseContext;
   import org.apache.tika.parser.image.TiffParser;
   import org.apache.tika.sax.BodyContentHandler;
   import org.xml.sax.SAXException;
  
   public class TiffParserImpl {
   public static void main(String[] args) throws IOException,SAXException,TikaException {
  
      String folderPath=args[0];   
      File directory = new File(folderPath);
      File[] fList = directory.listFiles();
      for (File file : fList){
          System.out.println("Files:"+file);
          BodyContentHandler handler = new BodyContentHandler();
  
          TiffParser parser = new TiffParser();
          Metadata metadata = new Metadata();
          FileInputStream inputstream = new FileInputStream(file);
          ParseContext pcontext=new ParseContext();
  
          parser.parse(inputstream, handler, metadata,pcontext);
          System.out.println("Contents of the document:" + handler.toString());
  
      }
  }
  
  }
  </code></pre>
  
  <p>I got empty results from both the methods. Has anyone tried converting tiff files?? If yes, how it is done??    </p>