This works, but is there an equivalent that allows me to read the attachment as a stream instead of having it entirely turned into a string?
@POST
@Path("/gazetteer/{id}/replace-contents/{type}")
@Consumes("multipart/form-data")
public Response takeGazetteerContents(@PathParam("id") String id,
@PathParam("type") String type,
MultivaluedMap<String, String>
formData) {
List<String> content = formData.get("content");
return null;
}
