Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Binding to Binary Data

Pumpkins
Pumpkins
Blueberries with leaves on wooden background
Blueberries with leaves on wooden background
Two oak mushrooms in the moss
Two oak mushrooms in the moss
Wild strawberries
Wild strawberries
Olives and olive oil
Olives and olive oil
Photo of very fresh tomatoes
Photo of very fresh tomatoes
White steamed rice
White steamed rice


The ImageGallery extension can display binary images.

In this demo, the image gallery is bound to an IEnumerable object via the Bind method. This object contains binary images retrieved from an Entity Framework data model. The ImageContentBytesField property specifies the data source field from which binary images should be retrieved. The ImageGallery extension caches the images to the folder specified by the ImageCacheFolder property.

Collapse/Expand
Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
The source code files for this demo are installed (by default) in the following directory:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\MVCxImageAndDataNavigationDemos