aspnet-devexpress-dot-web-dot-aspximagegallery-69dc749a.md
Specifies the data source field that contains item binary images.
Namespace : DevExpress.Web
Assembly : DevExpress.Web.v25.2.dll
NuGet Package : DevExpress.Web
[DefaultValue("")]
public string ImageContentBytesField { get; set; }
<DefaultValue("")>
Public Property ImageContentBytesField As String
| Type | Default | Description |
|---|---|---|
| String | String.Empty |
The name of the data source field.
|
The ASPxImageGallery control has the ability to display binary images. The ImageContentBytesField property specifies the data source field that contains binary images. The control creates images and thumbnails based on the binary data and caches the images to the folder specified by the ImageCacheFolder property. The ThumbnailUrlFormatString property has no effect in this case.
<dx:ASPxImageGallery ID="imageGallery" runat="server" DataSourceID="ImagesDataSource"
EnableViewState="false" ImageContentBytesField="Picture" AllowPaging="false">
<SettingsFolder ImageCacheFolder="~\Thumb\" />
<SettingsFullscreenViewer NavigationBarVisibility="Always" />
</dx:ASPxImageGallery>
Run Demo: Image Gallery - Binding To Binary Data
See Also