Skip to main content
Tab

ASPxImageGallery.ImageContentBytesField Property

Specifies the data source field that contains item binary images.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

[DefaultValue("")]
public string ImageContentBytesField { get; set; }

Property Value

Type Default Description
String String.Empty

The name of the data source field.

Remarks

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