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

JasperServer Discussion/Help Topic:
Threaded view
#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
JasperReport Error : Byte data not found at location : flower1.png
Project Roles
Posts: 27
JasperReport Error : Byte data not found at location : flower1.pngJasperReport Error : Byte data not found at location : flower1.png
Karma: 0
JasperReport Error : Byte data not found at location : flower1.pngJasperReport Error : Byte data not found at location : flower1.png
 
#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

相关文章:

  • 2021-05-21
  • 2021-12-16
  • 2021-05-09
  • 2021-10-14
  • 2021-06-11
  • 2021-11-24
  • 2022-12-23
  • 2021-08-25
猜你喜欢
  • 2022-12-23
  • 2021-09-02
  • 2021-06-13
  • 2021-05-06
  • 2021-08-17
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案