GetImageURL method: Response class

Syntax

GetImageURL(IMAGE.ImageName | rowset.row.record)

Description

This method returns a string which represents the URL of the requested image for images stored in the database.

Because the image field is a long data type, you can have only one on a record. Therefore you need to specify the record only. The long field on the record is assumed to be the image.

Note:

The GetImageURL method cannot be used with a derived work record.

Parameters

Parameter Description

ImageName

Specify the name of an existing image. This name must be prefaced with the reserved word IMAGE.

rowset.row.record

Specify the path to the image, that is, the rowset, row, and record.

Example

The following example gets the URL to use for the image; and the second line uses the URL reference.

&image_URL = %Response.GetImageURL(Image.ARROW);

%Response.WriteLine("<img src=" | &strImage | ">");

The following gets an image from a record.

&image_URL = %Response.GetImageURL(&rs.GetRow(1).GetRecord(Record.EMPL_PHOTO));