title: Cannot get image content from tika api using .net
body: <p>We are getting content of image from tika api(2.3.0) when we are calling from postman app. But the same call returns something else when we are calling from .net code.</p>
  <p><a href="https://i.stack.imgur.com/s5tMM.png" rel="nofollow noreferrer">Postman API Call</a></p>
  <p>.net code as follows</p>
  <pre><code>using (var httpClient = new HttpClient())
          {
              using (var request = new HttpRequestMessage(new HttpMethod(&quot;POST&quot;), &quot;http://192.168.1.118:9998/tika/form&quot;))
              {
                  request.Headers.TryAddWithoutValidation(&quot;Accept&quot;, &quot;*/*&quot;);
                  var multipartContent = new MultipartFormDataContent();
                  multipartContent.Add(new ByteArrayContent(File.ReadAllBytes(filepath)), &quot;upload&quot;, Path.GetFileName(filepath));
                  request.Content = multipartContent;
  
                  var response = await httpClient.SendAsync(request);
                  using (HttpContent content = response.Content)
                  {
                      var output= content.ReadAsStringAsync().Result;
                      ...
                  }
              }
          }
  </code></pre>
  <p>.net code returns 200 response, the output value comes as following:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  &lt;head&gt;
  &lt;meta name=&quot;X-TIKA:Parsed-By&quot; content=&quot;org.apache.tika.parser.EmptyParser&quot;/&gt;
  &lt;meta name=&quot;Content-Type-Override&quot; content=&quot;multipart/form-data;boundary=&amp;quot;457d8034-6ca0-4635-af6c-24176dbdd850&amp;quot;&quot;/&gt;
  &lt;meta name=&quot;Content-Type&quot; content=&quot;multipart/form-data; boundary=457d8034-6ca0-4635-af6c-24176dbdd850&quot;/&gt;
  &lt;title&gt;
  &lt;/title&gt;
  &lt;/head&gt;
  &lt;body/&gt;
  &lt;/html&gt;
  </code></pre>
  <p>strangely it is parsed by org.apache.tika.parser.EmptyParser, whereas the call from Postman is returning something else from the same tika server.</p>
  <p>response from Postman call</p>
  <pre><code>&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt;
  
  &lt;head&gt;
      &lt;meta name=&quot;Transparency Alpha&quot; content=&quot;none&quot; /&gt;
      &lt;meta name=&quot;tiff:ImageLength&quot; content=&quot;397&quot; /&gt;
      &lt;meta name=&quot;Compression CompressionTypeName&quot; content=&quot;deflate&quot; /&gt;
      &lt;meta name=&quot;Data BitsPerSample&quot; content=&quot;8 8 8&quot; /&gt;
      &lt;meta name=&quot;Data PlanarConfiguration&quot; content=&quot;PixelInterleaved&quot; /&gt;
      &lt;meta name=&quot;Dimension VerticalPixelSize&quot; content=&quot;0.26462027&quot; /&gt;
      &lt;meta name=&quot;IHDR&quot;
          content=&quot;width=765, height=397, bitDepth=8, colorType=RGB, compressionMethod=deflate, filterMethod=adaptive, interlaceMethod=none&quot; /&gt;
      &lt;meta name=&quot;Chroma ColorSpaceType&quot; content=&quot;RGB&quot; /&gt;
      &lt;meta name=&quot;tiff:BitsPerSample&quot; content=&quot;8 8 8&quot; /&gt;
      &lt;meta name=&quot;Content-Type-Override&quot; content=&quot;image/png&quot; /&gt;
      &lt;meta name=&quot;Content-Type&quot; content=&quot;image/png&quot; /&gt;
      &lt;meta name=&quot;height&quot; content=&quot;397&quot; /&gt;
      &lt;meta name=&quot;gAMA&quot; content=&quot;45455&quot; /&gt;
      &lt;meta name=&quot;pHYs&quot; content=&quot;pixelsPerUnitXAxis=3779, pixelsPerUnitYAxis=3779, unitSpecifier=meter&quot; /&gt;
      &lt;meta name=&quot;Chroma Gamma&quot; content=&quot;0.45455&quot; /&gt;
      &lt;meta name=&quot;Dimension PixelAspectRatio&quot; content=&quot;1.0&quot; /&gt;
      &lt;meta name=&quot;sRGB&quot; content=&quot;Perceptual&quot; /&gt;
      &lt;meta name=&quot;Compression NumProgressiveScans&quot; content=&quot;1&quot; /&gt;
      &lt;meta name=&quot;Content-Type-Parser-Override&quot; content=&quot;image/ocr-png&quot; /&gt;
      &lt;meta name=&quot;X-TIKA:Parsed-By&quot; content=&quot;org.apache.tika.parser.DefaultParser&quot; /&gt;
      &lt;meta name=&quot;X-TIKA:Parsed-By&quot; content=&quot;org.apache.tika.parser.image.ImageParser&quot; /&gt;
      &lt;meta name=&quot;X-TIKA:Parsed-By&quot; content=&quot;org.apache.tika.parser.ocr.TesseractOCRParser&quot; /&gt;
      &lt;meta name=&quot;Dimension HorizontalPixelSize&quot; content=&quot;0.26462027&quot; /&gt;
      &lt;meta name=&quot;Chroma BlackIsZero&quot; content=&quot;true&quot; /&gt;
      &lt;meta name=&quot;Compression Lossless&quot; content=&quot;true&quot; /&gt;
      &lt;meta name=&quot;width&quot; content=&quot;765&quot; /&gt;
      &lt;meta name=&quot;Dimension ImageOrientation&quot; content=&quot;Normal&quot; /&gt;
      &lt;meta name=&quot;tiff:ImageWidth&quot; content=&quot;765&quot; /&gt;
      &lt;meta name=&quot;Chroma NumChannels&quot; content=&quot;3&quot; /&gt;
      &lt;meta name=&quot;Data SampleFormat&quot; content=&quot;UnsignedIntegral&quot; /&gt;
      &lt;title&gt;
      &lt;/title&gt;
  &lt;/head&gt;
  
  &lt;body&gt;
      &lt;div class=&quot;ocr&quot;&gt;Hi gfhe dhfnmdfdjfdi
          djfndtn jnfakjfd
          jdhfakjfa
      &lt;/div&gt;
  
  &lt;/body&gt;
  
  &lt;/html&gt;
  </code></pre>