Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

No Format
$ curl -T price.xls http://localhost:9998/tika/main --header "Accept: text/plain"


With Tika 1.27 and greater, you can get the text and metadata of a file in json format with:

No Format
$ curl -T price.xls http://localhost:9998/tika --header "Accept: application/json"

To specify whether you want the content to be text (vs. html) specify the handler type after /tika:

No Format
$ curl -T price.xls http://localhost:9998/tika/text --header "Accept: application/json"


Multipart Support

Tika Resource also accepts the files as multipart/form-data attachments with POST. Posting files as multipart attachments may be beneficial in cases when the files are too big for them to be PUT directly in the request body. Note that Tika JAX-RS server makes the best effort at storing some of the multipart content to the disk while still supporting the streaming:

...