java如何从字节数组显示gif图片? 本帖最后由 hbxtght 于 2011-11-27 22:19:09 编辑 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 public BufferedImage getDecompressedImage(byte[] imageData) { try { ByteArrayInputStream bais = new ByteArrayInputStream(imageData); return ImageIO.read(bais); } catch (IOException ex) { return null; } }这里使用byte构造成一张图片,是在内存中的,直接画这个方法返回的图像 dom4j 读xml问题问题!急急急 切换程序后,原程序不工作了 谁能给我一个完整的GUI示例代码? 上传问题?? 搞定100分 工厂方法模式请教 上个群满了,好多朋友进不去,我又建了一个 4896616 关于类中数据访问的问题 题个问 给我个网站! runtime的问题! jdbc的问题, sql语句出错 细细讲解下啊,越细越好,举例子说明就更好了
public BufferedImage getDecompressedImage(byte[] imageData) {
try {
ByteArrayInputStream bais = new ByteArrayInputStream(imageData);
return ImageIO.read(bais);
} catch (IOException ex) {
return null;
}
}
这里使用byte构造成一张图片,是在内存中的,直接画这个方法返回的图像