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

Using Load On Demand with BinaryImage

1 Answer 23 Views
Rotator
This is a migrated thread and some comments may be shown as answers.
Ben
Top achievements
Rank 1
Ben asked on 22 Aug 2012, 04:15 PM
We have images stored in a database as blobs which we want to load on demand into a slideshow. Is it possible to use the BinaryImage control convert and display the images into the radrotator control from a memory stream?
If this isn't the correct approach, how would we go about creating this functionality?

Your help is very much appreciated!

Thanks,

Ben

1 Answer, 1 is accepted

Sort by
0
Slav
Telerik team
answered on 27 Aug 2012, 08:25 AM
Hi Ben,

You can use RadBinaryImage to load the images from your database in a load on demand RadRotator. To do this, you should render the binary image control in the web service that loads the data in the rotator and use its ImageUrl to add the image in the rotator items. You can find attached a sample that demonstrates the suggested approach and will help you with your scenario. To run the sample, please add the Telerik database in the App_Data folder (it can be found in this directory - [Your RadControls installation path]\Live Demos\App_Data).

Greetings,
Slav
the Telerik team
If you want to get updates on new releases, tips and tricks and sneak peeks at our product labs directly from the developers working on the RadControls for ASP.NET AJAX, subscribe to their blog feed now.
Tags
Rotator
Asked by
Ben
Top achievements
Rank 1
Answers by
Slav
Telerik team
Share this question
or