posts - 3,  comments - 2,  trackbacks - 0
          存了,相信以后會用到。。。
          轉自:
          //輸出word文檔

          if(blob!=null){


                  InputStream pi = blob.getBinaryStream();


                  int blobsize =(int)blob.length();

                  byte[] blobbytes = new byte[blobsize];

                  int bytesRead = 0;

                  while ((bytesRead = pi.read(blobbytes)) != -1) {

                    sos.write(blobbytes, 0, bytesRead);

                  }

                  pi.close();

                  sos.flush();

                  sos.close();

                }

                getBlob.dropConnFunction();

              }catch(Exception e){

                System.out.println(e.toString());

              }


            }

            //Clean up resources

            public void destroy() {

            }

          }
          主站蜘蛛池模板: 麻城市| 陇南市| 博爱县| 胶南市| 榆林市| 伊宁县| 綦江县| 吴桥县| 麻江县| 崇义县| 安康市| 新昌县| 高雄市| 古蔺县| 金寨县| 普定县| 海盐县| 安阳县| 南江县| 台东市| 汝州市| 崇阳县| 新营市| 洪洞县| 岳阳市| 江津市| 麻江县| 遵义市| 新竹市| 宾川县| 灵台县| 海口市| 祁阳县| 北海市| 进贤县| 乾安县| 绿春县| 交口县| 阿坝县| 德清县| 布尔津县|