How can I get the request attachment when using RESTEasy and multipart provider?

Solution Verified - Updated -


We have a RESTful WEB Service that receives a multipart attribute, for example:

            @Consumes (MediaType.MULTIPART_FORM_DATA)
            @Produces (MediaType.MULTIPART_FORM_DATA)
            @Path ("/resteasy/attachments")
            public Response handleRequest (MultipartInput input) throws Exception {
                 List<InputPart> inputParts = input.getParts();

How can we retrieve the HTTP request attachment using it?


  • RESTEasy 1.2.1
  • JBoss Enterprise Application Platform (EAP) 5.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content