
只是不要通过
Reader-从中读取数据
InputStream并将其写入
OutputStream。
// Using Guava (guava-libraries.googlepre.com)InputStream data = response.getEntity().getContent();try { OutputStream output = new FileOutputStream(filename); try { ByteStreams.copy(data, output); } finally { Closeables.closeQuietly(output); }} finally {}欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)