Populating an Image Item
Recall that although the definition of an image item is stored as part of the form module .FMB and .FMX files, no image file is actually associated with an image item until the item is populated at runtime.
Image items can be populated in the following ways:
- a fetch from a LONG RAW database column
- when the end user or the application executes a query in the block. When
a fetched image is modified or replaced, Oracle Forms marks that record
as Changed, and the next commit operation saves the new image to the corresponding
LONG RAW column in the database.
Note: You cannot write a SELECT statement to select a LONG
RAW value INTO an image item.
- executing the READ_IMAGE_FILE Built-in to read an image from the file system
(To dynamically write an image from an image item out to a file, use the Built-in
procedure WRITE_IMAGE_FILE.)
- paste an image from the clipboard into an empty image item.
At runtime, simply cut or copy an image to the clipboard, click in an empty
image item, then choose Edit | Paste. The pasted
image adopts the scaling of the image item into which you paste it. Adjust the
image item's Sizing Style property accordingly -- either Crop or Adjust.
Related topics
READ_IMAGE_FILE Built-in
WRITE_IMAGE_FILE Built-in