You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by José Luis Cetina <ma...@gmail.com> on 2017/04/28 04:01:04 UTC

Apache TomEE JAXRS input file

Hi, i'm using Apache TomEE 7.X with JAX-RS i want to upload a picture from
mi client side (angular) to a jax-rs method in TomEE, im searching for
examples but all the examples are using jersey, is there any way to get the
file as an inputstream or any other type in tomee without any external
dependency (like jersey)? Im using plain tomee.

Any recommendations?

Thanks

-- 
-------------------------------------------------------------------
*José Luis Cetina*
-------------------------------------------------------------------

Re: Apache TomEE JAXRS input file

Posted by Romain Manni-Bucau <rm...@gmail.com>.
Hi

You can have a payload of type InputStream. For uploads you can also inject
with @Context the http request and use either commons upload or servlet 3
Parts.

Le 28 avr. 2017 06:01, "José Luis Cetina" <ma...@gmail.com> a écrit :

> Hi, i'm using Apache TomEE 7.X with JAX-RS i want to upload a picture from
> mi client side (angular) to a jax-rs method in TomEE, im searching for
> examples but all the examples are using jersey, is there any way to get the
> file as an inputstream or any other type in tomee without any external
> dependency (like jersey)? Im using plain tomee.
>
> Any recommendations?
>
> Thanks
>
> --
> -------------------------------------------------------------------
> *José Luis Cetina*
> -------------------------------------------------------------------
>