相关文章推荐
逃跑的甘蔗  ·  ts女装官网 - 百度·  1 年前    · 
傲视众生的领带  ·  android ...·  1 年前    · 
    public InputStream getImageStream(BufferedImage bimage){
        InputStream is = null;
        ByteArrayOutputStream bs = new ByteArrayOutputStream();
        ImageOutputStream imOut;
        try {
        imOut = ImageIO.createImageOutputStream(bs);
        ImageIO.write(bimage, "png",imOut);
        is= new ByteArrayInputStream(bs.toByteArray());
        } catch (IOException e) {
        e.printStackTrace();
        return is;