Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

TdxCloudStorage.OnItemDownload Event

In This Article

Enables you to track the file download progress.

#Declaration

Delphi
property OnItemDownload: TItemDownloadEvent read; write;

#Remarks

A file download speed depends on the file size and network connection quality. Your application cannot use a file until it downloads it completely, and this process can take a noticeable amount of time in the case of a large file. You can handle the OnItemDownload event to track the file download progress, and optionally, visualize it as a number of bytes and/or percentage/progress bar (if the connected online storage’s server provides the downloaded file’s size).

This event occurs at the start and end of a file download process, and every time the file download routine successfully retrieves a 64-kilobyte block (that is, a file chunk) from the connected server. Refer to the TItemDownloadEvent nested procedural type description that includes details on all parameters within an OnItemDownload event handler and a code example.

Note

Handle the OnItemDownloaded event to retrieve a data stream with the downloaded file’s content and load it into a control that can edit and/or display such files. To obtain information on any file download errors, handle the OnError event.

See Also