【发布时间】:2017-10-18 07:05:25
【问题描述】:
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 中看不到任何数据迹象?
我的目标是下载 PDF。
【问题讨论】:
标签: java url iframe inputstream httpurlconnection