| |
---|
| | 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); |
---|
| |
---|
| | |