JAX-RS support for file upload

I researched ways to write a file upload application. The examples either make use of Jersey or RESTEasy specific annotations to implement the application.

Is there no support for a file upload in the JAX-RS spec itself? Do I have to import Jersey or RESTEasy specific classes to get this to work?

Answers


You could develop your own JAX-RS impl-agnostic Multipart support (develop a JAX-RS message-body reader/writer and your own Java representation of the multipart entity) - essentially duplicating what Jersey or RESTEasy provide through their proprietary API already, if JAX-RS portability is of high importance to you.


Need Your Help

Updating Solr configuration to search on all fields

php solr

Can anyone advise me on how to search Solr on all fields?

SQL, count in multiple columns then group by

sql ms-access count group-by

I am trying to count in multiple columns then group by for a total sum where the same data appears in any column