You are here: Reference > Data classes > About Image Content data instances

  About Image Content data instances
 

  1. About 
  2. New 
  3. Main 
  4. History 
  5. More... 

Image Content instances provide an alternative to binary file rules, to store images that:

For example, you can use an Image Content data instance to identify each division in an organization.

Where referenced

You can reference data content image instances in two ways. The first is to write out a reference to the image cleartext URL in HTML code:

<img src="../datacontent/Image/
filePath/fileName.fileType">

This URL is consistent and reusable.

The second way is by using the contentURL JSP tag, which will generate the same cleartext URL as if one had written it as a cleartext URL:

<img src="<pega:contentURL name="fileName.fileType path="/filePath/" classType="Image" />">

The contentURL JSP tag creates a constant, reusable cleartext URL.

For example: To reference an image with the file name "profilepicture," the file path "/operatorimages/" and the file type "jpg," you could do this in one of two ways:

<img src="../datacontent/Image/operatorimages/foo.jpg">

or

<img src="p:contentURL name="foo.jpg" path="/operatorimages/" classType="image"/>"/>

Both of these references generate the same cleartext URL for the image.

Category

An Image Content data instance belongs to the Data-Content-Image class. They are part of the Technical category.

Associated RuleSet

When you save an Image Content data instance, if the Associated RuleSet is [none], the system completes this field with a RuleSet from the current application. This association assists with application packaging. You can update the associated RuleSet using the field in the upper right corner of the form. See Identifying parts of rule and data forms.

If there is no RuleSet associated with the data instance (for example, for existing instances not previously associated with a RuleSet), the Associated RuleSet displays [none].

Related topics contentURL JavaServer Page tag

Technical category
Help System home pageHelp Home