日期:2014-05-17 浏览次数:20897 次
PictureReadByIbatis pri = new PictureReadByIbatis();
CeShi text = new CeShi();
Map demoMap = new HashMap();
List demoList = new ArrayList();
demoList = pri.getList("showTable", demoMap);
text = (CeShi)demoList.get(0);
//把读出的数据流文件存进一个byte数组中*
//byte[]dd = text.getCeshi();
byte[]dd2 = text.getCeshi();
ServletOutputStream out = null;
response.setContentType("image/bmp");
out = response.getOutputStream();
out.write(dd2);
out.flush();
out.close();
return null;