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

How to do the RadUpload saves the Files to DB(SQL Server)?

8 Answers 304 Views
Upload
This is a migrated thread and some comments may be shown as answers.
yang
Top achievements
Rank 1
yang asked on 01 Dec 2010, 08:36 AM
How to do the RadUpload saves the Files to DB(SQL Server)?

The telerik Radcontrols for silverlight  explain not clear.It only describes upload files to  folder of .web server.
if one person has done,help me please.
QQ:284675703   remark: RadUpload

8 Answers, 1 is accepted

Sort by
0
yang
Top achievements
Rank 1
answered on 01 Dec 2010, 09:02 AM
otherwise. How to do that the RadUpload can upload mutil- files to DataBase at the same time. And conside the speed of upload,how to do chunk to files(this is my reference to internet).
If you can send a interrelated example to me ,it's the best.
0
yang
Top achievements
Rank 1
answered on 01 Dec 2010, 09:04 AM
contracts:lindayyh811@163.com .
thank you very much once more.
0
Alex Fidanov
Telerik team
answered on 01 Dec 2010, 12:58 PM
Hi yang,

You can see an example of how to upload files directly into the database in this forum thread. Please let us know if you have questions on the sample.

Greetings,
Alex Fidanov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
yang
Top achievements
Rank 1
answered on 03 Dec 2010, 06:29 AM
thanks Telerik. I will think deeply myself.
If I will haven't solved the problem,I will ask for your help.
0
yang
Top achievements
Rank 1
answered on 03 Dec 2010, 09:53 AM
Hi Telerik.
Thanks for your advice.And Thanks for your reference that you provides to others person.
Through this example,I have knew that it is how to upload files to Database with SaveChunkData method.It is that Dividing file to chunk  posts  to Database. But here is a problem.If  the file which is uploading is too large(default:100000bit), there are lots of records being associated with this file in Database after having uploaded. So I think asking some questiones:
 Fir: The file that be saved to Database would saved a record? if have,the way is what?
Sec: The above.These files's records that be saved to Database is saved with byte in order?
Third: If I do download function,How do I? The primary reson is there are lots of records in Database.
0
yang
Top achievements
Rank 1
answered on 06 Dec 2010, 02:59 AM
Hi Telerik.
I try my best do the example that you give me (attach:UploadSaveIntoDataBaseExamle).But I have't solved yet.
The Erro are af:

始终显示缺少的源文件的反汇编.

调用堆栈位置:
Telerik.Windows.RadUploadHandler.DLL!Telerik.Windows.RadUploadHandler.ProcessStream();


为“c:\Builds\WPF_Scrum\Release_SL_2010_Q2_SP2\Sources\Development\Controls\Input\RadUploadHandler\UploadHandler.cs”查找源。Checksum: MD5 {15 24 bc d5 da 81 d8 b2 36 be 37 7e 70 5b c0 d0}
文件“c:\Builds\WPF_Scrum\Release_SL_2010_Q2_SP2\Sources\Development\Controls\Input\RadUploadHandler\UploadHandler.cs”不存在。
正在脚本文档中查找“c:\Builds\WPF_Scrum\Release_SL_2010_Q2_SP2\Sources\Development\Controls\Input\RadUploadHandler\UploadHandler.cs”...
正在项目中查找“c:\Builds\WPF_Scrum\Release_SL_2010_Q2_SP2\Sources\Development\Controls\Input\RadUploadHandler\UploadHandler.cs”。
在项目中未找到该文件。
正在目录“C:\Program Files\Microsoft Visual Studio 10.0\VC\crt\src\”中查看...
正在目录“C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\mfc\”中查看...
正在目录“C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\src\atl\”中查看...
正在目录“C:\Program Files\Microsoft Visual Studio 10.0\VC\atlmfc\include\”中查看...
活动解决方案的调试源文件设置指明调试器不会要求用户查找文件: c:\Builds\WPF_Scrum\Release_SL_2010_Q2_SP2\Sources\Development\Controls\Input\RadUploadHandler\UploadHandler.cs。
调试器未能找到源文件“c:\Builds\WPF_Scrum\Release_SL_2010_Q2_SP2\Sources\Development\Controls\Input\RadUploadHandler\UploadHandler.cs”。
0
Alex Fidanov
Telerik team
answered on 08 Dec 2010, 10:34 AM
Hello yang,

The example does not override the ProcessStream method, which seems to be causing an exception in your case. Is it possible to provide us with the project that you are working with so that we can test this on our end and look in to it? Thank you.

Best wishes,
Alex Fidanov
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
yang
Top achievements
Rank 1
answered on 10 Dec 2010, 03:19 AM
Hi Telerik.
I have Solved the Upload and DownLoad.
About above this issue.I can't solved.But I transplent my code to the solution that you provide me(UploadSaveIntoDataBaseExample).Even though this is a troublesome problem.
Thank you for the example of providing me once again.
Tags
Upload
Asked by
yang
Top achievements
Rank 1
Answers by
yang
Top achievements
Rank 1
Alex Fidanov
Telerik team
Share this question
or