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

Multi delete working in mysql workbench but not in visual studio

c# mysql sql-delete workbench

I want to delete multiple rows from different tables using C# and mysql. I have 3 tables

T-SQL update an increasing value

sql-server tsql

I have a table with many columns, one column is called "aID" and currently has no value. I want to add an increasing value here, from 1 to the amount of rows in table.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.