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构造成一张图片,是在内存中的,直接画这个方法返回的图像 关于java的io流的问题? 求java中日期范围正则表达式 关于removeAllItems触发的invalid事件 iterator.next() 请教个遍历 IBM JDK6 for Windows在哪里有下载的? 请教JAVA程序员的问题! 如何单击按钮时,显示内容? 网络高手请进 给个“hello world"的例子程序 一个搞不懂的问题?请帮忙!!!! jdbc的问题, sql语句出错 细细讲解下啊,越细越好,举例子说明就更好了
public BufferedImage getDecompressedImage(byte[] imageData) {
try {
ByteArrayInputStream bais = new ByteArrayInputStream(imageData);
return ImageIO.read(bais);
} catch (IOException ex) {
return null;
}
}
这里使用byte构造成一张图片,是在内存中的,直接画这个方法返回的图像