Download image from database using RadBinaryImage

Thread is closed for posting
1 posts, 1 answers
  1. Answer
    Telerik Admin
    Telerik Admin avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 07 Oct 2009 Link to this post


    RadControls for ASP .NET AJAX version

    2009.2.826 and later
    .NET version

    3.5 and later
    Visual Studio version

    2008 and later
    Programming language

    C#, Javascript
    Browser support

    all browsers supported by RadControls for ASP .NET AJAX

    The following project demonstrates how RadBinaryImage can be placed inside a LinkButton and used for downloading the stored binary image on click. The LinkButton that contains the binary image is placed in the ItemTemplate of the MasterTableView and fires a custom command. The latter is handled in RadGrid's ItemCommand event, where the database is queried for the image data and the content is written to the HTTP response stream.

    The project uses Telerik.mdf SQL data file, that is included with your Telerik RadControls installation package and can be found in directory \LiveDemos\App_Data, relative to your installation folder.
Back to Top

This Code Library is part of the product documentation and subject to the respective product license agreement.