Download image from database using RadBinaryImage

Thread is closed for posting
1 posts, 1 answers
  1. Answer
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD
    63F75A2C-1F16-4AED-AFE8-B1BBD57646AD avatar
    1572 posts
    Member since:
    Oct 2004

    Posted 07 Oct 2009 Link to this post

    Requirements

    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


    PROJECT DESCRIPTION
    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.