JAVA实现截取网页图片

毅会

关注

阅读 96

2023-05-09


代码段:

public static int GetPic(String URL,String ADid){

 String path=CatPath+"iecapt.exe";

 Process pro = null;

 try {

 pro = Runtime.getRuntime().exec(path + " " + URL + " " + CatPath + ADid + ".jpg");

 pro.waitFor();

 }catch(IOException e){ 

 } catch (InterruptedException e) {

 } 

 return 0;

 }

 

精彩评论(0)

0 0 举报