title: Apache Tika, cannot retrieve 'subject' metadata value
body: <p>I am using java and i am trying to extract some metadata with apache tika, but i cannot extarct the expected value for the 'subject' metadata. The file is a jpg image. Here is my code:</p>
  
  <p>First i am parsing the file like this:</p>
  
  <pre><code>        inputStream = new FileInputStream(fileToExtract);   
          Parser parser = new AutoDetectParser();  
          ContentHandler contentHandler = new BodyContentHandler();  
          Metadata metadata = new Metadata(); 
          parser.parse(inputStream, contentHandler, metadata, new ParseContext()); 
  </code></pre>
  
  <p>and then i am trying to print these:</p>
  
  <pre><code>    metadata.get(Metadata.AUTHOR)                           --&gt;  "MyAuthor"
      metadata.get(TikaCoreProperties.CREATOR)                --&gt;  "MyCreator"
      metadata.get(TikaCoreProperties.TITLE)                  --&gt;   "MyTitle"
      metadata.get(Metadata.SUBJECT)                          --&gt;   **null**
      metadata.get(TikaCoreProperties.KEYWORDS)               --&gt;   **null**
  </code></pre>
  
  <p>So, i get correctly all the values and i get null value for the subject. The metadata were added manually by me (right click->properties, windows OS).</p>
  
  <p><img src="https://i.stack.imgur.com/4X0Le.jpg" alt="enter image description here"></p>
  
  <p>Am i doing something wrong?</p>
  
  <hr>
  
  <p>PS: Note that "TikaCoreProperties.KEYWORDS" is another way to retrieve the subject according to apache tika documentation.</p>