Back to Devexpress

ASPxImageGallery.ImageContentBytesField Property

aspnet-devexpress-dot-web-dot-aspximagegallery-69dc749a.md

latest2.2 KB
Original Source

ASPxImageGallery.ImageContentBytesField Property

Specifies the data source field that contains item binary images.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
[DefaultValue("")]
public string ImageContentBytesField { get; set; }
vb
<DefaultValue("")>
Public Property ImageContentBytesField As String

Property Value

TypeDefaultDescription
StringString.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.

aspx
<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

ASPxImageGallery Class

ASPxImageGallery Members

DevExpress.Web Namespace