Dear Wiki user, You have subscribed to a wiki page or wiki category on "Tika Wiki" for change notification.
The "TikaJAXRS" page has been changed by DaveMeikle: https://wiki.apache.org/tika/TikaJAXRS?action=diff&rev1=25&rev2=26 Comment: Updated Unpacker resource for resource mapping changes in TIKA-1324 {{{ $ curl -X PUT -H "Content-Disposition: attachment; filename=foo.csv" --upload-file foo.csv http://localhost:9998/detect/stream }}} - == Unpacker Resource == + == Unpack Resource == {{{ - /unpacker + /unpack }}} HTTP PUTs an embedded document type to the /unpacker service and you get back a zip or tar of the extracted text for each resource filename in the original PUT embedded document type. You can also use /unpacker/all to get back both the text and metadata. Default return type is ZIP (without internal compression). Use "Accept" header for TAR return type. + Please note the mapping of this resource was changed in Apache Tika 1.6 from /unpacker/id to /unpack/id /all/id & /unpack/all/id ([[https://issues.apache.org/jira/browse/TIKA-1324|TIKA-1324]]). + Some Example calls with cURL: === PUT zip file and get back met file zip === {{{ - $ curl -X PUT -d @foo.zip http://localhost:9998/unpacker --header "Content-type: application/zip" + $ curl -X PUT -d @foo.zip http://localhost:9998/unpack --header "Content-type: application/zip" }}} === PUT doc file and get back met file tar === {{{ - $ curl -T Doc1_ole.doc -H "Accept: application/x-tar" http://localhost:9998/unpacker > /var/tmp/x.tar + $ curl -T Doc1_ole.doc -H "Accept: application/x-tar" http://localhost:9998/unpack > /var/tmp/x.tar }}} === PUT doc file and get back the content and metadata === {{{ - $ curl -T Doc1_ole.doc http://localhost:9998/unpacker/all > /var/tmp/x.zip + $ curl -T Doc1_ole.doc http://localhost:9998/unpack/all > /var/tmp/x.zip }}} Text is stored in {{{__TEXT__}}} file, metadata cvs in {{{__METADATA__}}}. Use "accept" header if you want TAR output.
