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
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
0

Roman
Top achievements
Rank 1
answered on 10 Feb 2009, 04:03 PM
Any ideas how to do this? =/
0
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:
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.
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
0
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.
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.