Merge pull request #239 from nitta-lab-2021/url_challenge
POST時のurl変更
commit 1b8b82945cdd2137f8c8bcf894d472380dfcfcc6
2 parents e66a587 + 605e38c
fujii kouta authored on 20 Oct 2021
Showing 1 changed file
View
4
src/main/java/org/ntlab/acanthus_server/resources/gallery/StrokesRest.java
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;
Base64Decode.saveAsFile(aid, pid, url, image);
// String url = "http://nitta-lab-www.is.konan-u.ac.jp" + path1;
Base64Decode.saveAsFile(aid, pid, path1, image);
 
} catch (IOException e) {
e.printStackTrace();
throw new WebApplicationException(500);