HTMLunit(HtmlImage)java.io.IOException:响应中未检测到图像
我尝试从网站上保存图片,正常情况下,这是完美的:HTMLunit(HtmlImage)java.io.IOException:响应中未检测到图像,java,web,htmlunit,Java,Web,Htmlunit,我尝试从网站上保存图片,正常情况下,这是完美的: final HtmlImage im = page.getFirstByXPath("//div[@class='picture']/img"); File imageFile = new File(pictureFile); im.saveAs(imageFile); 现在在这个网站上,他告诉我:java.io.IOException:响应中没有检测到图像 webseite代码为: <div clas
final HtmlImage im = page.getFirstByXPath("//div[@class='picture']/img");
File imageFile = new File(pictureFile);
im.saveAs(imageFile);
现在在这个网站上,他告诉我:java.io.IOException:响应中没有检测到图像
webseite代码为:
<div class="picture">
<img border="0" src="/e/s?random=0.9705617034141113"></img>
仅限
为什么是o.o
final HtmlImage im = page.getFirstByXPath("//div[@class='picture']/img");