RESTeasy and the @MultipartForm , server and client
问题 Walking through the RESTEasy Guide 4.4.0-final from jboss. Having the examples to guide be as well. Wanting to create a small service where you post a binary-file with some metadata. In this particular case I would like to post a file + 'the owner of that file'. In my first effort I am using the following construct (1st-attempt-server). @POST @Consumes(MediaType.MULTIPART_FORM_DATA) public Response uploadFile(@FormDataParam("file") InputStream is, @FormDataParam("file")