byte[] buff = new byte[1024]; int len = 0; OutputStream os = response.getOutputStream(); while ((len = bis.read(buff)) > 0) { os.write(buff, 0, len); }
大概就是这样