LAPTOP-5NTQJPUS\LT 1 year ago
parent
commit
a1e7ec9440
1 changed files with 15 additions and 0 deletions
  1. 15 0
      DataFusion/src/com/zskk/control/ViewController.java

+ 15 - 0
DataFusion/src/com/zskk/control/ViewController.java

@@ -156,6 +156,21 @@ public class ViewController extends Controller {
 				renderText(e.toString());
 			}	
 	}
+	
+	public void testdld() {
+		try {
+			String filePath = "http://172.28.244.106:8090/pacsimage/showreportbydiagidandpagenumber.action?diagrptid=ABA12F9079FB4017B7A77DF282C18ED7&pagenumber=0";
+			String fileNameStr[] = filePath.split("/");
+			String fileName = fileNameStr[fileNameStr.length - 2];
+			String fileStorePath = getFileWithUrl(filePath, fileName);
+			renderText(fileStorePath);
+
+		} catch (Exception e) {
+			// TODO: handle exception
+			renderText(e.toString());
+		}
+		
+	}
 	public static String getFileWithUrl(String url, String filename) {
 
 		Request request = new Request.Builder().url(url).build();