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

[Solved] Image Manager : Images from Database

1 Answer 104 Views
Editor
This is a migrated thread and some comments may be shown as answers.
robertgalvinjr
Top achievements
Rank 1
robertgalvinjr asked on 16 Dec 2009, 04:23 PM
What would I need to change in the Image Manager in order to get/store the images from a database instead of the file system. What would be the best approach? Should I modify the Image Manager file in EditorDialogs folder or just write a custom dialog. Pretty much I just want the user to be able to click the image button, which would prompt them to upload a file, after upload it gets stored in the database and then returns to the Editor page with the embedded image inline. How can the editor handle images coming from database instead of a normal file based <img tag -

I am sure this has been asked before but can;t find it in the forums - if you had an example that would be great. Thanks

1 Answer, 1 is accepted

Sort by
0
Rumen
Telerik team
answered on 17 Dec 2009, 02:56 PM
Hi Rob,

Please, see the following help article which provides guidance how to create a custom FileBrowserContentProvider: Using custom FileBrowserContentProvider.

The custom FileBrowserContentProvider allows using virtually any type of file sources for the FileBrowser dialogs (Image Manager, DocumentManager, Media Manager, Flash Manager, Template Manager):

  • Database
  • Custom role-based CMS system
  • Web service
  • Applications which use URL Rewriters

This example demonstrates the implementation of a custom FileBrowserContentProvider, using a database as a file source.

The file browser content provider file used in this demo is located in the following location: [drive]:\Program Files\telerik\RadControls for ASP.NET AJAX Q# 2009\Live Demos\App_Code\Editor - you should have installed the RadControls for ASP.NET AJAX demos on your machine too.


Best regards,
Rumen
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
Tags
Editor
Asked by
robertgalvinjr
Top achievements
Rank 1
Answers by
Rumen
Telerik team
Share this question
or