ireport 的图片组件
表达式为:
数据库存的是字符串的话
new ByteArrayInputStream(org.apache.commons.codec.binary.Base64.decodeBase64($F{base64_str}.getBytes()))
在数据库存的是json格式的数据的话new ByteArrayInputStream(org.apache.commons.codec.binary.Base64.decodeBase64(net.sf.json.JSONObject.fromObject($F{base64_str}).get("key").toString().getBytes()))