JasperReport Error : Byte data not found at location : flower1.png

http://jasperforge.org/plugins/espforum/view.php?group_id=112&forumid=102&topicid=49316

 

JasperServer Discussion/Help Topic:
#49316
api.JSExceptionWrapper: Byte data not found at loc 12/04/2008 18:36  

Image error

I have up loaded our logo in to the image folder. I have also uploaded the image during the report setup in jasper server. When I run the report from iReports I have no issues. When I run the report from jasper server I am receiving the error below.

How do I get jasper report server to find my images?

com.jaspersoft.jasperserver.api.JSExceptionWrapper: Byte data not found at location : PRYERLogo.jpg
com.jaspersoft.jasperserver.api.JSExceptionWrapper: net.sf.jasperreports.engine.JRException: Byte data not found at location : PRYERLogo.jpg
 at net.sf.jasperreports.engine.util.JRLoader.loadBytesFromLocation(JRLoader.java

lconklin
user photo
Project Roles
Posts: 27
graphgraph
Karma: 0
graphgraph
 
#49366
RE:api.JSExceptionWrapper: Byte data not found at loc 12/05/2008 15:15  

I have resolved the issue myself. There are some inconsistencies between iReports and Jasper Report Server.

iReports pull jpg from the directory where the jrxml is located. If using Jasper Reports Server and using the image folder you need to change the jrxml.

<imageExpression class="java.lang.String"><![CDATA["PRYERLogo.jpg"]]></imageExpression>
to
<imageExpression class="java.lang.String"><![CDATA["repo:/images/PRYERLogo"]]></imageExpression>

 



Post Edited by larry conklin at 12/05/08 15:16

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值