@GET
@Path("{fileName}")
@Produces("application/zip")
@JWTTokenNeeded
public Response get(@PathParam("fileName") String fileName) {
return Response.ok(
new File(Paths.get(System.getProperty("java.io.tmpdir"), fileName).toString() + ".zip"),
MediaType.APPLICATION_OCTET_STREAM)
.header("Content-Disposition", "attachment; filename=\"" + fileName + ".zip\"")
.build();
}
.setReader
import java.sql.Blob;
Hi all: I'm trying to build my project this morning and suddenly the elemento-core jar we've been depending on is suddenly missing from the main Maven repository.
[ivy:resolve] :: problems summary ::
[ivy:resolve] :::: WARNINGS
[ivy:resolve] [NOT FOUND ] org.jboss.gwt.elemento#elemento-core;0.8.2-gwt2!elemento-core.gwt-lib (387ms)
[ivy:resolve] ==== ibiblio: tried
[ivy:resolve] https://repo1.maven.org/maven2/org/jboss/gwt/elemento/elemento-core/0.8.2-gwt2/elemento-core-0.8.2-gwt2.gwt-lib
Did something happen to the older artifacts?
.jar
, not a .sources
)