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

posted @   qiang.xu  阅读(4985)  评论(0编辑  收藏  举报
编辑推荐:
· 如何编写易于单元测试的代码
· 10年+ .NET Coder 心语,封装的思维:从隐藏、稳定开始理解其本质意义
· .NET Core 中如何实现缓存的预热?
· 从 HTTP 原因短语缺失研究 HTTP/2 和 HTTP/3 的设计差异
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
阅读排行:
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 分享 3 个 .NET 开源的文件压缩处理库,助力快速实现文件压缩解压功能!
· Ollama——大语言模型本地部署的极速利器
· DeepSeek如何颠覆传统软件测试?测试工程师会被淘汰吗?
点击右上角即可分享
微信分享提示