本帖最后由 hbxtght 于 2011-11-27 22:19:09 编辑

解决方案 »

  1.   


    public BufferedImage getDecompressedImage(byte[] imageData) {
    try {
    ByteArrayInputStream bais = new ByteArrayInputStream(imageData);
    return ImageIO.read(bais);
    } catch (IOException ex) {
    return null;
    }
    }
    这里使用byte构造成一张图片,是在内存中的,直接画这个方法返回的图像