Submit Image

Marco Hernandez2 years ago

Add fields to drivers and one of them is a file/image, I read on the internet that with a @formDataParam I receive an image, when I import from build.gradle and update if it installs well, the problem is when I try to raise the server gives me an error here. Does anyone know why?

Link image

build.gradle

dependencies {
    implementation "com.sun.jersey.contribs:jersey-multipart:1.18.2"
...
}

DriverResource.java

import com.sun.jersey.multipart.FormDataParam;
....
public Response add(@FormDataParam("name") String name,@FormDataParam("uniqueId") String uniqueId) throws StorageException {
....
}