我的python3代码: import requests
r = requests.get(url, stream=True) for chunk in r.iter_content(chunk_size):
fd.write(chunk) 它将内容保存在metadat.pdf中,但这不是pdf的真正内容,它是
我想从一个网址下载一个pdf文件。为了查看pdf文件,我使用了下面的代码。File file = new File("/sdcard/example.pdf");
Uri path = Uri.fromFile(file);Intent intent = new Intent(Intent.ACTION_VIEW);
intent.setDataAndType(path,