Skip to main content

UploadedFile.FileBytes Property

Gets an array of the bytes in the uploaded file.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.1.dll

NuGet Package: DevExpress.Web


public byte[] FileBytes { get; }

Property Value

Type Description

A Byte array that contains the file’s contents.


Uploading a file/files, specified within the ASPxUploadControl, can be initiated either by a call to the client ASPxClientUploadControl.Upload method, or automatically on the next round trip to the server (for instance, on a button click or page refresh). On the server side, while saving an uploaded file, the FileBytes property can be used to get the file’s contents.

See Also