Skip to main content
Tab

UploadedFile.FileBytes Property

Gets an array of the bytes in the uploaded file.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.2.dll

Declaration

public byte[] FileBytes { get; }

Property Value

Type Description
Byte[]

A Byte array that contains the file’s contents.

Remarks

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.

The following code snippets (auto-collected from DevExpress Examples) contain references to the FileBytes property.

Note

The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.

See Also