Using Load On Demand with BinaryImage

2 posts, 0 answers
  1. Ben
    Ben avatar
    2 posts
    Member since:
    Jul 2012

    Posted 22 Aug 2012 Link to this post

    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
  2. Slav
    Admin
    Slav avatar
    1356 posts

    Posted 27 Aug 2012 Link to this post

    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.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top