| | |
| | | e.printStackTrace(); |
| | | |
| | | } |
| | | // OutputStream out = null; |
| | | // try{ |
| | | // response.setHeader("Cache-Control", "no-store, no-cache"); |
| | | // response.setContentType("image/jpeg"); |
| | | // InputStream inputStream = utilService.generateImgStream(bookingsId,userId); |
| | | // out = response.getOutputStream(); |
| | | // int len = 0; |
| | | // byte[] b = new byte[1024]; |
| | | // while ((len = inputStream.read(b)) != -1) { |
| | | // out.write(b, 0, len); |
| | | // } |
| | | // out.flush(); |
| | | // }catch (Exception e){ |
| | | // e.printStackTrace(); |
| | | // }finally { |
| | | // try { |
| | | // if (out != null) { |
| | | // out.close(); |
| | | // } |
| | | // } catch (Exception e) { |
| | | // e.printStackTrace(); |
| | | // } |
| | | // } |
| | | |
| | | } |
| | | |
| | | |