The example of this article tells the method of Java intercepting web pictures. Share it for everyone for your reference. The specifics are as follows:
This is to call the third -party control, and then read the picture file and store it into the database
Public Static int Getpic (String url, String Adid) {String PATH = CATPATH+"IEcapt.exe"; Process Pro = Null; XEC (PATH + "" + URL + "" + Catpath + Adid + ".jpg"); Pro.WaitFor ();} Catch (IOEXCEPTION E) {} Catch (interruptException E) {} Return 0;}
It is hoped that this article is helpful to everyone's Java program design.