ireport 添加Base64为图片

ireport 添加Base64为图片

  先把图片转车base64 ,再加入到ireport

new ByteArrayInputStream(new Base64().decodeBase64(new StringBuffer("iVBORw0KGgoAAAANSUhEUgAAAMgAAAAcCAIAAACrlWfwAAAX1ElEQVR42u2bB3RTV5rHmT2zO2fn7
OzU7M7uSYYaIAnp1EAgEBJ6h1ADhElISAgJYQghCZBsAJtiY9yCDbgXuclVsiTLVa6yLfdu3G3Zsnrv7P/p2g+54MLM
nLOzQec7Os9X9933pPt7/+//3fc85f7j1+PX3+E1ZcxP7SMa7HazHu+Pf7jHr0cFy6SxSURDWiwmQ7a3sSj4H/oLhzQ3u
FdXmG22v8loVrvdvbpSYjA8JmnejcyFQILDDxWq3W09MTjMbHxyO7Yb6BaVBQEFhB+xhgQcYgdeAYuGAoHBSZUSQS
wbcBLHxKPRPR0eHr64sNAhb64OSRWyGlkDq8Y4QJ/peOURdzwqbsHlu0yLvZbKWD+tcI+33yTgf5kxp18Eli5Did3kxX
ReTfLsxmm0SiFfeqEb19Gur/LMgh7NQ6lqRf2yOm2rEviKeewbeNX8ggDb3NZf0mPHD2CLAKJL1VCrlpMtWQ1Gg4U1I
EM7d9lGe5uEtZCXcb6yc+mmVo3T5wSTsRSWuAacL/UKTT6ZzHn3itN2zHCfzXjJ12+s77jgcWtWCqvm+z3P/Hf1nsdpR
7hwSZwGsuM6pDowFSaDE+UoGNa6RXr79WVb6cnbiFz9mVmbaamwIli2trGVf2Hv+Xzv/PV4VcdkqYL9brtZa/wQUDLYS
LgnQltLcqTMbHMDm//hcKYNcvBwWzIAAAAABJRU5ErkJggg==").toString().getBytes("UTF-8")))

如图:

ireport 添加Base64为图片_第1张图片



 xml文件,把base64的包导进去 



你可能感兴趣的:(ireport 添加Base64为图片)