diff --git a/src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.java b/src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.java index c426591..8fbba97 100644 --- a/src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.java +++ b/src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.java @@ -121,15 +121,17 @@ public String addImage(@PathParam("aid") Integer aid, @PathParam("pid") Integer pid, @FormParam("image") String image) { String path1 = ""; + String path = ""; try { - path1 = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/webapps"; - Base64Decode.saveAsFile(aid, pid, path1, image); + path1 = applicationContext.getResource("file:").getFile().getAbsolutePath() +"/apache-tomcat-9.0.10"+ "/webapps"; + System.out.println("0"+ path1.toString()); + path = Base64Decode.saveAsFile(aid, pid, path1, image); } catch (IOException e) { e.printStackTrace(); throw new WebApplicationException(500); } - return path1; + return path; }