-1
URL url = new URL("https://www.cs.tut.fi/~jkorpela/html/iframe-pdf.html");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
InputStream in = connection.getInputStream();
当调用getInputStream时,我将所有的字节都变成了一个字符串。但为什么我没有看到iframe中的数据的任何迹象?输入流是否包含iframe的数据?
我的目标是下载PDF。