• Post Reply Bookmark Topic Watch Topic
  • New Topic

Jersey REST - multiple file upload and JAXB object  RSS feed

 
Barkha Keni
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am using Jersey for REST. For POST, can we upload 2 files and send JAXB annotated object in a single POST operation?

@POST
@Path("create")
@Consumes({MediaType.MULTIPART_FORM_DATA, MediaType.APPLICATION_XML, MediaType.APPLICATION_JSON})
@Override
public Response addData(FormDataMultiPart multiform, System type)

Any help will be appreciated.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!