|
@@ -95,7 +95,7 @@ public class DataService {
|
|
|
InputStream in = null;
|
|
|
OutputStream out = null;
|
|
|
try {
|
|
|
- SmbFile remoteFile = new SmbFile(remoteUrl + shareFolderPath + File.separator + fileName);
|
|
|
+ SmbFile remoteFile = new SmbFile(remoteUrl + shareFolderPath + "/" + fileName);
|
|
|
File localFile = new File(localDir + File.separator + fileName);
|
|
|
localFile.getParentFile().mkdirs();
|
|
|
in = new BufferedInputStream(new SmbFileInputStream(remoteFile));
|
|
@@ -121,7 +121,7 @@ public class DataService {
|
|
|
.build();
|
|
|
|
|
|
Request request = new Request.Builder()
|
|
|
- .url("http://192.168.233.1:8080/view/upload")
|
|
|
+ .url("http://127.0.0.1:8080/df/view/upload")
|
|
|
.post(requestBody)
|
|
|
.build();
|
|
|
|
|
@@ -148,7 +148,13 @@ public class DataService {
|
|
|
// postWithParameters(GET_EXAM_URL, map);
|
|
|
// ThreadPoolService tService = new ThreadPoolService();
|
|
|
// tService.execute(() -> {
|
|
|
-// downloadFileToFolder("smb://"+"hao:"+"123456@" +"192.168.31.150", "/share/pagkage", "factor1.py", "./tempImg"); });
|
|
|
+// downloadFileToFolder("smb://"+"hao:"+"123456@" +"192.168.1.140", "/VAIO/ConsoleTest", "app.config", "./tempImg",null);
|
|
|
+ downloadFileToFolder("smb://" +"192.168.1.140", "/ConsoleTest", "app.config", "./tempImg",null);
|
|
|
+// });
|
|
|
+
|
|
|
+// String spString = "\\\\102\\jm\\2017\\22\\img";
|
|
|
+// String[] spStrings = spString.split("\\\\");
|
|
|
+// System.out.print(spStrings[2]);
|
|
|
}
|
|
|
|
|
|
}
|