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

How do I have to do to save / get file from database by RadUpload?

2 Answers 372 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Marut
Top achievements
Rank 1
Marut asked on 07 Jan 2009, 08:47 AM
Hello guys,

              Please anyone give me a clue or guideline how to save the uploaded file by radupload to database and get it from database as well .  If there is an example . It would be great.  

              For now  I did this code for the saving part.
                    for (int iLoop = 0; iLoop < RadUploadContext.Current.UploadedFiles.Count; iLoop++)
                    {
                         byte[] bytes = new byte[RadUploadContext.Current.UploadedFiles[iLoop].InputStream.Length];
 Then I put the bytes as the param in binary field.  Just need a little example or any suggestion  also any better idea about my code..


Many thanks .


PS. Sorry if my english  is not good.


2 Answers, 1 is accepted

Sort by
0
Accepted
Paul
Telerik team
answered on 07 Jan 2009, 09:10 AM
Hi Marut,

Please refer to this help article for details on the matter.

Regards,
Paul
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Marut
Top achievements
Rank 1
answered on 07 Jan 2009, 09:20 AM
Thank you very much Paul.
Tags
Upload (Obsolete)
Asked by
Marut
Top achievements
Rank 1
Answers by
Paul
Telerik team
Marut
Top achievements
Rank 1
Share this question
or