Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [jaxrs-dev] MultiPart Provider

Thanks for the answer ! Multipart is not supported yet.
As an alternative i'll consume MediaType.MULTIPART_FORM_DATA  and inject java.io.File instance that represents the incoming request body.
But this latter couldn't be decoded (I got a CXF decode error) so i added the annotation @Encoded.
Is it a good practice ? Is the type File supported or not ?

On Tue, Mar 13, 2018 at 4:21 PM, Santiago Pericas-Geertsen <santiago.pericasgeertsen@xxxxxxxxxx> wrote:


On Mar 13, 2018, at 7:30 AM, chebbi lamis <chebbi.lamis@xxxxxxxxx> wrote:


Hello,

I'm implementing an upload service that consumes multi-part form data.
The file is sent from my Angular Application. What type of method parameter i should expect ? The java type File or an InputStream ? or another multipart body type ?
I don't want to use JERSEY,CXF and RESTeasy. I want to use JAX-RS annotations.
What shall I do ?

Any help will be highly appreciated. After searching it doesn't seem that JAX-RS support this issue.

 Please see,


— Santiago


_______________________________________________
jaxrs-dev mailing list
jaxrs-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/jaxrs-dev




--
Lamis CHEBBI

Software engineer at Vermeg

Tel : +216 26 98 77 27 



Back to the top