Versionen im Vergleich

Schlüssel

  • Diese Zeile wurde hinzugefügt.
  • Diese Zeile wurde entfernt.
  • Formatierung wurde geändert.
Auszug
hiddentrue

Nuclos Jasper inserting images: image, PNG, SVG, scale image, on error, resource, InputStream, image expression.

globe with meridians Language: Deutsch · English

hammer and wrench Inserting images

Embed images in reports/forms – as a resource or dynamically from the database via InputStream.

Status
colourPurple
titleHow-to
Status
colourBlue
titleApplication developer
Status
colourGreen
titleUpdated: Jul 2026
Status
colourGrey
titleapplies to Nuclos 4.2026.x

Panel
bgColor#F4F5F7

On this page

Inhalt
maxLevel2
minLevel2

Insert an image into the form

JasperReports accepts GIF, PNG and JPEG as well as vector graphics as SVG (without embedded raster graphics). Drag the Image tool onto the canvas and pick the file (set the filter to „All files“ if needed).

Image element in Jaspersoft Studio.

Key properties

PropertyValues
Scale ImageRetain Shape (aspect ratio, default) · Fill Frame (fills area, may distort).
On Error TypeError (throw, default) · Blank (nothing) · Icon (placeholder).
RotationNone · Left (−90°) · Right (90°) · UpsideDown (180°).
Image Alignmenthorizontal/vertical alignment.

Provide the image in Nuclos

Nuclos embeds the image at runtime by file/image name. Upload it under Configuration → Others → Resource.

Hinweis
titleDon't forget

The new resource must be assigned to the nuclet – otherwise the report reports that the image cannot be found.

Images from report data (dynamic)

To show images from the database:

  1. Create a field referencing the image (e.g. User_Photo).
  2. Set the field Class to java.io.InputStream.
  3. In the Image tab open the expression editor and set the field as the Image Expression.

Image expression from a database field.

Related pages

printer Creating forms with Jaspersoft Studio


Forms.

Open →

clipboard Resource


Resources.

Open →

open book QR code


Barcodes.

Open →