Oracle 大字段类型处理

来源:互联网 发布:胸大 知乎 编辑:程序博客网 时间:2024/04/30 15:37
 Map<String,Object> params = new HashMap<String, Object>();          params.put("cuscode","vvcc");          //从数据库查出结果        Map<String,Object> resMap = memberManagementServices.getQrcode(params);         //获取Blob类型字段         byte[] buffer = (byte[])resMap.get("imgstr");          File file = new File("d:/temp/cccc.png");          FileOutputStream fos = null;          try {              fos = new FileOutputStream(file);          } catch (FileNotFoundException e) {              e.printStackTrace();          }          BufferedOutputStream bos = new BufferedOutputStream(fos);          try {          //把byte写入流文件            bos.write(buffer);          } catch (IOException e) {              e.printStackTrace();          }          return "123";
原创粉丝点击