|
|
|
@ -249,9 +249,10 @@ public class IvsServerController { |
|
|
|
|
|
|
|
final String resourcePath = String.format("images/%s.jpg", cameraCode); |
|
|
|
final String userDir = System.getProperty("user.dir"); |
|
|
|
log.info("!!!!!!!!!!!!!!userDir: {}", userDir); |
|
|
|
final String absolutePath = userDir.endsWith("/") ? |
|
|
|
userDir + resourcePath : |
|
|
|
userDir + "\\" + resourcePath; |
|
|
|
userDir + "/" + resourcePath; |
|
|
|
log.info("absolutePath2: {}", absolutePath); |
|
|
|
|
|
|
|
InputStream inputStream = Files.newInputStream(new File(absolutePath).toPath()); |
|
|
|
|