Java method of intercepting web page pictures

  • 2020-04-01 04:01:06
  • OfStack

This article illustrates the Java method of intercepting a web page image. Share with you for your reference. The details are as follows:

This is to call the third party control, and then in the read image file into the database


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;
}

I hope this article has been helpful to your Java programming.


Related articles: