FileOutputStream out = null;
try {
out = new FileOutputStream("D:\\logs\\"+"cc.pdf");
} catch (FileNotFoundException e) {
e.printStackTrace();
}
int data;
try {
while((data = inputStream.read()) != -1) {
out.write(data);
}
inputStream.close();
out.close();
} catch (IOException e) {
e.printStackTrace();
}
inputStream 转 file(pdf)
最新推荐文章于 2024-10-01 09:29:09 发布