login Register forgot password or username?
Search:         
Cradle from 3SL, the complete Model Based Systems Engineering Toolsuite, specialising in requirements management, requirements capture, model based systems engineering and for systems engineering software, support and consultancy, the logical choice: Cradle from 3SL.

December 2008 [Cradle 5.7]

How to Load Images into Database Items

There are two places in WorkBench where images can be loaded into items, forms and views displayed in table style. The process of adding images is the same in both cases, and so in this example we will concentrate on loading image data into frames from tables.

We start by running a query and displaying the items (of type SR in this case) in a view that shows the new IMAGE and IMAGE REF frames:

To load data into the IMAGE frame where the image is stored in the Cradle database:

  1. Select the table cell for the IMAGE frame, and it becomes a button:
  2. If you click the button then the frame will be edited and Paint would be opened on an empty image, so the best approach is to right click on the button (or click the Frame pulldown menu that will have appeared in the menu bar) and choose Import Data:

  3. Select the image file containing the data to be imported:

    And click Open to load the image data which, as it is an image, will be shown in the WorkBench view:

To load data into the IMAGE REF frame where the image is stored as an external file whose pathname is stored in the Cradle database:

  1. Select the table cell for the IMAGE REF frame, and it becomes a button:
  2. This frame does not store the image; it stores the pathname to the image. To record this pathname in the frame you can click the button (as the frame has no pathname then you will be asked to define it), right click on the button or click the Frame pulldown menu that will have appeared in the menu bar and choose Frame Properties:

  3. The Reference External Data dialogue will appear in which you can enter or browse to find the pathname of the image to be referenced by the frame:

    And click OK to store the pathname in the frame and, as it is an image, the contents of the file will be shown in the WorkBench view:
Back to index