I would like to know how to create a REST webservice that posts multipart request to upload the file without using third party libraries like Jersey or Spring.
Thanks.>
@POST @Consumes(MediaType.MULTIPART_FORM_DATA) @Path("/uploadfile") void uploadFile(@Context HttpServletRequest request, @Multipart(value = "file", type = MediaType.APPLICATION_OCTET_STREAM)Attachment file);