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

[Solved] Saving and retrieving images into database using editor image

3 Answers 107 Views
Editor
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Shane P
Top achievements
Rank 1
Shane P asked on 30 Aug 2011, 09:28 AM
The editor control is really nice and want to use it for a project I am working.

All of the demos are based on saving and retrieving the images from the folder structure within the site.

Is it possible to use the image within the editor returning images from a database and also allow inserting images into the db?

Is there any examples floating around?

Thank you!

3 Answers, 1 is accepted

Sort by
0
Georgi Tunev
Telerik team
answered on 30 Aug 2011, 10:51 AM
Hi Shane,

I believe that the following code library will be of help - you could use it as a base and extend it further to fit your requirements:
http://www.telerik.com/community/code-library/aspnet-mvc/editor/imagebrowser-bound-to-database.aspx



Regards,
Georgi Tunev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

0
Shane P
Top achievements
Rank 1
answered on 03 Sep 2011, 02:22 AM
Thanks Georgi,

That is indeed what I need, I have converted into the latest version as the example was using an old version of the telerik mvc library so I updated it to use the latest.

I managed to get most of the control to work with however.

The thumbnail controller is never called. Looking in fiddler I am told the controller doesnt exist however I know its there and have checked the spelling is correct.

Using IE there seems to be a bug when uploading an image when uploading an image the Web Adress bar is shown as   /ImageBrowser/Image?path=Root/C:\Users\me\Desktop\header-bg.gif causing the path to be wrong for rendering the image.

FF & chrome work fine path as /ImageBrowser/Image?path=Root/header-bg.gif


Are these known bugs?
0
Atanas Korchev
Telerik team
answered on 03 Sep 2011, 09:43 AM
Hello Shane P,

 You are right - there is a problem with the code library project in IE. The FileName property of the uploaded file is the full path when the file is uploaded in IE. The code library project failed to handle this case.

 I have fixed this problem and you can find the updated code library project attached to this thread. I will update the online project as well.

Your Telerik points have been updated as a token of our gratitude for discovering this problem.

Regards,
Atanas Korchev
the Telerik team

Thank you for being the most amazing .NET community! Your unfailing support is what helps us charge forward! We'd appreciate your vote for Telerik in this year's DevProConnections Awards. We are competing in mind-blowing 20 categories and every vote counts! VOTE for Telerik NOW >>

Tags
Editor
Asked by
Shane P
Top achievements
Rank 1
Answers by
Georgi Tunev
Telerik team
Shane P
Top achievements
Rank 1
Atanas Korchev
Telerik team
Share this question
or