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

RadUpload & RadEditor in RadGrid

4 Answers 142 Views
Upload (Obsolete)
This is a migrated thread and some comments may be shown as answers.
Roman
Top achievements
Rank 1
Roman asked on 07 Feb 2009, 01:20 PM
Hi!

I the newcomer in it. I tried to pass the given tutorial, and to add there RadEditor for text editing. But if I use RadScriptBlock RadEditor does not work. I also tried without it, but at me all the same it has not turned out to load a photo into a database. Could you  help me to realise this idea?

I have put the demo files here.
There is a screenshot as look the given table to a database, probably, it will help...

Regards,
Roman




4 Answers, 1 is accepted

Sort by
0
Roman
Top achievements
Rank 1
answered on 10 Feb 2009, 04:03 PM
Any ideas how to do this? =/
0
Veselin Vasilev
Telerik team
answered on 10 Feb 2009, 04:51 PM
Hello Roman,

As I see from your code-behind file, you do not store the data of the file in your database. You just store it in the session:

private void InitializeUpdateParameter(RadUpload currentUpload) 
        { 
            if (currentUpload.UploadedFiles.Count > 0) 
            { 
                byte[] data = new byte[currentUpload.UploadedFiles[0].ContentLength]; 
                currentUpload.UploadedFiles[0].InputStream.Read(data, 0, data.Length); 
                Session["DataCS"] = data; 
            } 
        } 

What you need to do is to store the data array in the database.

Also, what exactly is the problem between RadEditor and RadScriptBlock?

Regards,
Veselin Vasilev
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
0
Roman
Top achievements
Rank 1
answered on 10 Feb 2009, 06:09 PM
Hi!

Thanks for reply.
I don't know how to explain the problem between RadEditor and RadScriptBlock, but i can show. Try to Edit some information here

Can you give me an example how to store the data array in the database?

Regards
Roman

0
Veselin Vasilev
Telerik team
answered on 13 Feb 2009, 12:29 PM
Hi Roman,

You can check this help article: RadUpload > Manipulating Uploaded Files
It shows how to get the input stream and save it in a database.

I hope this will get you started.

Sincerely yours,
Veselin Vasilev
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Check out the tips for optimizing your support resource searches.
Tags
Upload (Obsolete)
Asked by
Roman
Top achievements
Rank 1
Answers by
Roman
Top achievements
Rank 1
Veselin Vasilev
Telerik team
Share this question
or