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

Upload file store in database as binary

1 Answer 326 Views
Upload
This is a migrated thread and some comments may be shown as answers.
Colin Wright
Top achievements
Rank 2
Colin Wright asked on 31 Mar 2014, 08:35 AM
Hi,

I wanted to know if it was possible to save the posted file in a database table as binary. I am using asp.net and an web service (asmx). My database table is

ID (int),
Filename varchar,
Filedata (varbinary).,
title (varchar),
Description (varchar)

A user uploads a document and gives it a title and description. I know I can use a separate web form page as the saveurl and get the posted file, but I am struggling with returning the ID to store the title and description. 

Any help greatly appreciated.

1 Answer, 1 is accepted

Sort by
0
Daniel
Telerik team
answered on 02 Apr 2014, 07:38 AM
Hello,

You can pass the id and the other values if needed with the upload request by using the upload event as demonstrated in this documentation topic.

Regards,
Daniel
Telerik
 
Join us on our journey to create the world's most complete HTML 5 UI Framework - download Kendo UI now!
 
Tags
Upload
Asked by
Colin Wright
Top achievements
Rank 2
Answers by
Daniel
Telerik team
Share this question
or