相关文章推荐
悲伤的拐杖  ·  教程 - 从 Blazor ...·  1 年前    · 
不敢表白的芒果  ·  html - webm before or ...·  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;