HelloWorld 善戰者,求之于勢,不責于人;故能擇人而任勢。

          知止而后有定,定而后能靜,靜而后能安,安而后能慮,慮而后能得。物有本末,事有終始。知所先后,則近道矣。

            BlogJava :: 首頁 ::  :: 聯系 ::  :: 管理 ::
            167 隨筆 :: 1 文章 :: 40 評論 :: 0 Trackbacks
        1. 轉自http://mingkg21.javaeye.com/blog/431067
        2. private byte[] InputStreamToByte(InputStream is) throws IOException {   
        3.    ByteArrayOutputStream bytestream = new ByteArrayOutputStream();   
        4.    int ch;   
        5.    while ((ch = is.read()) != -1) {   
        6.     bytestream.write(ch);   
        7.    }   
        8.    byte imgdata[] = bytestream.toByteArray();   
        9.    bytestream.close();   
        10.    return imgdata;   
        11.   }  
        12.  

          1. byte[] data;   
          2. InputStream is = new ByteArrayInputStream(data);  




           



          </script>

          posted on 2009-10-12 22:25 helloworld2008 閱讀(926) 評論(0)  編輯  收藏 所屬分類: java
          主站蜘蛛池模板: 金平| 尤溪县| 阿尔山市| 龙州县| 尼勒克县| 谷城县| 青神县| 定陶县| 当涂县| 建昌县| 仙桃市| 凤城市| 蓬溪县| 志丹县| 通化市| 高密市| 永和县| 朝阳县| 遵化市| 九龙城区| 城市| 龙川县| 海伦市| 黄大仙区| 当雄县| 大渡口区| 沛县| 聂荣县| 拜泉县| 贵定县| 桐城市| 康乐县| 青阳县| 咸宁市| 鹤庆县| 保德县| 芮城县| 康保县| 新民市| 铜鼓县| 长丰县|