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