@Path(\"file.upload\")
public class UploadFileService {
@POST
@Consumes(MediaType.MULTIPART_FORM_DATA)
public Response uploadFile(
@FormDataParam(\"file\") I
You can use @FormDataParam("file") equivalent of FormDataMultiPart if you want it using annotation.
Used as given below sample code extract:
public Response uploadFile( **@FormDataParam("file")** InputStream fileInputStream,
@FormDataParam("file") FormDataContentDisposition contentDispositionHeader) {