隨筆-11  評論-5  文章-1  trackbacks-0
          將流存進Buffer里
          byte[] buffer = null;
          int a = doc.getDocumentSize()*1024;
          buffer = new byte[a];
          int byteread=0;
          FileOutputStream fos=new FileOutputStream(buffer.toString());
          BufferedOutputStream bos=new BufferedOutputStream(fos);
          bos.flush();
          bos.close();
          然后 將Buffer里的數據存到本地
          bos.toString();
          FileOutputStream fs=new FileOutputStream("c:/aaa"+"."+doc.getDefaultExtension());
          byteread=inStream.read(buffer);
          fs.write(buffer,0,byteread);
          inStream.close();或是存到相對路徑
          FileOutputStream fis = new FileOutputStream(filePath1);
          posted on 2006-07-31 12:12 Crespo 閱讀(378) 評論(0)  編輯  收藏 所屬分類: Java web

          silently Love^..^

          <2006年7月>
          2526272829301
          2345678
          9101112131415
          16171819202122
          23242526272829
          303112345

          常用鏈接

          留言簿(4)

          隨筆分類(5)

          隨筆檔案(11)

          文章分類(1)

          文章檔案(1)

          最新隨筆

          搜索

          •  

          最新評論

          閱讀排行榜

          評論排行榜

          主站蜘蛛池模板: 迁安市| 古丈县| 金阳县| 卓尼县| 镇康县| 罗田县| 布尔津县| 织金县| 女性| 军事| 宿州市| 永修县| 沁阳市| 双牌县| 阳山县| 聂拉木县| 锡林郭勒盟| 拜城县| 桦甸市| 壶关县| 道真| 温泉县| 泸溪县| 东乡| 秭归县| 沈阳市| 通江县| 黄平县| 讷河市| 澄江县| 唐山市| 余庆县| 临城县| 衡山县| 嘉黎县| 武清区| 唐山市| 博野县| 介休市| 密云县| 嘉兴市|