Re: [Resteasy-users] Proper way to handle uploading files via RestEasy/Netty

2014-02-18 Thread Bill Burke
Maybe? :) On 2/18/2014 11:56 AM, John D. Ament wrote: > Hmmm. So if I want to get an inputstream (because the object is > actually something like a word doc), can I just plugin inputstream for > MyClass? > > On Tue, Feb 18, 2014 at 9:49 AM, Bill Burke wrote: >> Upload via a browser? >> >> Serve

Re: [Resteasy-users] Proper way to handle uploading files via RestEasy/Netty

2014-02-18 Thread John D. Ament
Hmmm. So if I want to get an inputstream (because the object is actually something like a word doc), can I just plugin inputstream for MyClass? On Tue, Feb 18, 2014 at 9:49 AM, Bill Burke wrote: > Upload via a browser? > > Server side: > > @POST > @Consumes(MediaType.MULTIPART_FORM_DAT

Re: [Resteasy-users] Proper way to handle uploading files via RestEasy/Netty

2014-02-18 Thread Bill Burke
Upload via a browser? Server side: @POST @Consumes(MediaType.MULTIPART_FORM_DATA) public Response uploadRealm(MultipartFormDataInput input) throws IOException { Map> uploadForm = input.getFormDataMap(); List inputParts = uploadForm.get("file"); for (In

[Resteasy-users] Proper way to handle uploading files via RestEasy/Netty

2014-02-16 Thread John D. Ament
Hi all, Just wondering if there are any pointers to how to best handle a file upload via RestEasy's NettyJaxrsServer? When I was doing it via an app server, it was easy because there was an HTTP request. Would injecting @Context HttpServletRequest still work here? I'm inclined to think not but