# Image

Holds an image embedded within the design file.

### Description

BIRT allows images to be embedded within the design file. This is most useful for reports created in an external application and submitted to a server for immediate, one-time execution. If report designs are created with the BIRT designer, and are saved on disk, the developer will probably find it easier to use external images referenced with a file name or URL.

### See Also

## name

The name of the image within the design.

### Description

Provides a name for the image. The image name is used to reference the image in an image item. Image names must be unique within the report. The image name can be any legal name, it need not be related to the original image name on disk. That is, "Logo" is a fine name, it need not be "corplogo.jpg".

### See Also

## type

The format of the image.

### Choices

- image/jpeg: JPEG image:
- image/bmp: Windows bitmap:
- image/gif: Compuserve GIF format:
- image/png: Portable Network Graphics (PNG) format:
- image/x-png: ??

### Description

This property defines the type of the image using standard MIME types. The type can be omitted. In this case, BIRT attempts to identify the image format by looking at the first few bytes of the image. Many image formats provide a unique "magic number". However, this solution is not guaranteed to work for all images and all image formats. To avoid problems, the application should specify the image type whenever possible.

### See Also

## data

The binary data for the image.

### Description

This property contains the image itself as an array of bytes. The data is stored in the XML design file using base-64 encoding.

### See Also