This is a migrated thread and some comments may be shown as answers.

Download code in Handler

2 Answers 48 Views
FileExplorer
This is a migrated thread and some comments may be shown as answers.
Vishal
Top achievements
Rank 1
Vishal asked on 20 Sep 2012, 04:36 PM
Hi,

How can I download the file from Database in FileExplorer when physcial file is not stored on client or the server but only stored in DB in binary format.


Thanks

Vishal.

2 Answers, 1 is accepted

Sort by
0
Vessy
Telerik team
answered on 24 Sep 2012, 10:33 AM
Hi Vishal,

I believe the following live demo will be of help in solving this case: FileExplorer / Filter files and download. It shows a possible way to handle the OnClientFileOpen() event in order to download the selected file.

The full code of this example (including the code of Handler.ashx) is available in the folder, where RadControls are installed on your computer. In order to make a file directly downloadable, you will need to add an HTTP header of type "content-disposition" (see the Handler's WriteFile()).

Please, refer to the following w3.org article for more information regarding HTTP header fields: Header Field Definitions.
 
Additionally, you could take a look at the following code library and a live demo (if you haven't done it yet), which are representing the way to integrate RadFileExplorer with a database:

Kind regards,
Vesi
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
0
Vishal
Top achievements
Rank 1
answered on 24 Sep 2012, 10:36 AM
Ok. Thanks.

I will have a look

Vishal.
Tags
FileExplorer
Asked by
Vishal
Top achievements
Rank 1
Answers by
Vessy
Telerik team
Vishal
Top achievements
Rank 1
Share this question
or