Data Editors - Editor Types Binary Image

Resizing settings

The origianl image file size is 328KB (1200 x 900 px), the resized image file size is KB for ().

This demo illustrates the BinaryImage editor's ability to resize and crop images on the server side.

The DevExpress ASP.NET MVC BinaryImage editor is able to display images from a binary stream. The editor content (an array of bytes) can be accessed by the ContentBytes property.

You can specify a height (Height) and width (Width) of the displayed image. By default the image is sent to the server side in original size and resized by a browser. Setting the Properties.EnableServerResize property to true enables image resizing on the server size. In this use-case, you can specify how an image fits the specified sizes, using the Properties.ImageSizeMode property. The server resizing allows to reduce the amount of data sent to the client side.

The BinaryImage editor allows end-users to upload images to the server. By default this feature is disabled, set the Properties.EditingSettings.Enabled property to true to enable it. You can try this functionality in the Binary Image Column Editing demo.

Version: v2017 vol 1.7
Copyright © 2006-2017 Developer Express Inc
Your Next Great MVC App Starts Here

Get started today and download your 30-day trial of DevExpress MVC Extensions (includes 30 days of free technical support).

All demos ship with full source code and are included in the DevExpress MVC distribution. Refer to the Demos and Sample Applications topic to learn more.

DevExpress MVC Extensions ship as part of DevExpress Universal, DXperience and ASP.NET Subscriptions and are backed by a 60 day unconditional money-back guarantee.
To learn more and obtain pricing information, visit the Compare Features and Pricing webpage. For immediate assistance, contact us by Email at or by phone at +1 (818) 844-3383 between 7:30am and 4:30pm Pacific Time.