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 5707ef5..0276096 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 @@ -120,28 +120,15 @@ @Produces(MediaType.APPLICATION_JSON) public String addImage(@PathParam("aid") Integer aid, @PathParam("pid") Integer pid, @FormParam("image") String image) { - - String vid = "a" + aid.toString() + pid.toString(); -// String url = "http://nitta-lab-www.is.konan-u.ac.jp/nitta-lab-www/webapps/"; - String path1 = ""; try { -// path1 = applicationContext.getResource("http:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps"; - path1 = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/apache-tomcat-9.0.10/webapps"; -// String url = "http://nitta-lab-www.is.konan-u.ac.jp" + path1; + path1 = applicationContext.getResource("file:").getFile().getAbsolutePath() + "/webapps"; Base64Decode.saveAsFile(aid, pid, path1, image); } catch (IOException e) { e.printStackTrace(); throw new WebApplicationException(500); } - - - -/* ArrayList categories = (ArrayList) category; - ScreenImage v = screenimage.createScreenImage(aid, pid, vid, url, categories); - return v;*/ - return path1; }