Specifying the Image Location

You can specify the location of image files using any of the following methods:

Java resource file loaded by the class loader

URL

Relative file path on local file system

Absolute file path on local file system

The specification for the image location depends on how the application is deployed. The types of supported image files are the same as the Java implementation, which include GIF, JPEG, and PNG (with JDK 1.3 and higher).

When you 'Embed' an image in a report, the image data is saved in the report template as an XML object. Subsequently, the image is loaded from the template directly without consulting the specified image path.

Image embedding is very convenient for smaller images, eliminating the need to manage the deployment of image files. If the image is very large, however, the resulting template file will be large. If multiple template files share the image, it is best to deploy the image as a resource file; thus the overall size of the template files remain small.

<< Adding an Image Element © 1996-2013 InetSoft Technology Corporation (v11.5) 5.12 Decorative Elements >>