Skip to main content

BootstrapBinaryImage Class

Represents an editor capable of displaying images from a binary stream.

Namespace: DevExpress.Web.Bootstrap

Assembly: DevExpress.Web.Bootstrap.v23.1.dll

NuGet Package: DevExpress.Web.Bootstrap


[ToolboxTabName("DX.23.1: Bootstrap Controls")]
public class BootstrapBinaryImage :


The BootstrapBinaryImage control can be used to display on the web page any valid image (supported by the requesting browser) taken from a binary stream.

This class inherits its basic functionality from its ancestor. The ASPxBinaryImage.ContentBytes property provides access to the editor’s contents represented by an array of bytes. The ASPxBinaryImage.StoreContentBytesInViewState property allows you to control whether the editor’s content should be stored within the editor’s view state between postbacks.


The client-side equivalent of this editor control is represented by the BootstrapClientBinaryImage object. The editor’s client-side API is enabled if the ASPxEditBase.ClientInstanceName property is defined, any client event is handled, or the ASPxEditBase.EnableClientSideAPI property is set to true. Available client events can be accessed via the BootstrapBinaryImage.ClientSideEvents property.


This example demonstrates how to enable the Binary Image‘s drag-and-drop feature.

The image below shows the result:


<dx:BootstrapBinaryImage runat="server">
    <EditingSettings Enabled="true" AllowDropOnPreview="true" EmptyValueText="Drop image here" />
See Also