How can i retrieve image or file from server joget to display into jasper report

Confluence User - 27 Dec, 2018

Hi, 

 

I have a question, how can i retrieve image or file that already upload into server joget to use to display into jasper report.

file;image;jasperreport

2


28 Dec, 2018
confluenceUser
confluenceUser

Hello, the first thing is that in the form through which you uploaded the image, verify the permissions, since, eventually, the person who consults the report may not be authenticated.

On the other hand, for Jasper an image resource is usually a URL, so from the query that you have as data source you must assemble the URL of the image you want to show. In my case, in the query select I must add a field with this definition:

http://localhost:8080/jw/web/client/app/lider_gestion/5/form/download/espec_bordado/' || id || '/' || c_image_field || '.' as URL1


Where c_image_field is the name of the image field in the form. For some reason, besides the character '.' at the end of the result it is necessary to assemble the URL of the image.

In the XML of the report, something like:

<image>
<reportElement x="0" y="20" width="360" height="150" uuid="10434016-fea6-494f-a4a0-e1943826f1fa"/>
<imageExpression><![CDATA[$F{url1}]]></imageExpression>
</image>
31 Dec, 2018
confluenceUser
confluenceUser

hello, hi, the url, how can i get the url?

RELATED QUESTIONS

Your answer


To answer a question you'll need an account.

Print