BufferedOutputStream out1 = null;
res.setContentType("application/pdf");
try{
out1 = new BufferedOutputStream(res.getOutputStream());
byte[] buf =new byte[2048];
int num;
while((num=in.read(buf,0,buf.length)) != -1){
out1.write(buf,0,num);
}
}
catch(Exception e){
}
res.setContentType("application/pdf");
try{
out1 = new BufferedOutputStream(res.getOutputStream());
byte[] buf =new byte[2048];
int num;
while((num=in.read(buf,0,buf.length)) != -1){
out1.write(buf,0,num);
}
}
catch(Exception e){
}
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货