Display an Image Stored in the Database
Collaborate with us
Edit this page on GitHub
You can display different types of images in your applications such as static images, external images fetched from URLs, and images stored in the database.
In Reactive Web and Mobile
To display a database image in Reactive Web and Mobile:
- Open the screen where you want to display the image.
- Check if there is an aggregate fetching the image from the database. Add the aggregate if needed.
- Drag the Image widget from the toolbox to the screen.
- Set the property Type to
Binary Data
. - Set the property Image Content to the entity attribute that stores the image.
In Traditional Web
To display a database image in Traditional Web:
- Open the screen where you want to display the image.
- Check if there is an aggregate fetching the image from the database. Add the aggregate to the Preparation if needed.
- Drag the Image widget from the toolbox to the screen.
- Select an existing image resource or import a new image as an image default. This image is used as a placeholder during design time and as default during runtime.
- Select the image and change its property Type to
Database
. - Set the Attribute property to an entity attribute of type
Binary Data
that stores the image in the database. - Set the Filename property to the name of the file when the end user saves the image.
- Set the Entity Identifier property to the identifier of the specific entity record that contains the image to display.