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

Methods for uploading files to a database

3 Answers 202 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Boris
Top achievements
Rank 1
Boris asked on 19 Oct 2012, 12:37 PM
I'm new to Telerik.  In this case I'm not quite sure what I'm looking for.

I have a bit of ASP.Net sample code that allows me to upload Word docs and stick them into a varbinary(max) field in a SQL Server database.  (I am aware that there's a RadAsyncUpload control but I don't think that's what I'm looking for.)

Are there any Telerik controls or techniques that could help?

3 Answers, 1 is accepted

Sort by
0
Kate
Telerik team
answered on 24 Oct 2012, 11:27 AM
Hello Boris,

You can use the RadAsyncUpload control and extend its functionality so that a file can be directly saved in the database. I would suggest that you try using the approach described in the following demo - Custom Handler.

All the best,
Kate
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
Boris
Top achievements
Rank 1
answered on 24 Oct 2012, 12:25 PM
Possibly.  A co-worker suggested RadUpload.  The requirement is that the insertion of the binary field is part of the insertion of a new record, not an update of an existing record.  The problem is that I already have home-made code that does this.  I'm not sure how close it is in functionality to your controls.
0
Kate
Telerik team
answered on 29 Oct 2012, 12:29 PM
Hello Boris,

Using the RadAsyncUpload control, you can access the uploaded files on the OnFileUploaded event and using the UploadedFile property (that provides reference to the uploaded file) get access to the uploaded files. Then you can handle these files as desired.

Kind regards,
Kate
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.
Tags
General Discussions
Asked by
Boris
Top achievements
Rank 1
Answers by
Kate
Telerik team
Boris
Top achievements
Rank 1
Share this question
or