DB 쿼리 결과값을 xls(excel) 파일로 저장해보자. ===== JSP ===== 0 && file.isFile()){ // 0byte이상이고, 해당 파일이 존재할 경우 BufferedInputStream fin = new BufferedInputStream(new FileInputStream(file)); // 인풋객체생성 BufferedOutputStream outs = new BufferedOutputStream(response.getOutputStream()); // 응답객체생성 int read = 0; try{ out.clear(); out = pageContext.pushBody(); while((read = fin.read(b)) > 0){ outs.write(b,0,read); } }catch(Exception e) { e.printStack.. 더보기 이전 1 2 3 4 5 6 7 ··· 15 다음