I displayed an image using the RadBinaryImage

2 posts, 0 answers
    ALBERT avatar
    38 posts
    Member since:
    Dec 2010

    Posted 29 May 2012 Link to this post

    the field in the database is a varbinary (max)
    I have
    the following in html:
    <asp:Repeater ID="Repeater1" runat="server">
                    <telerik:RadBinaryImage ID="ImgFoto" runat="server" Visible="true" DataValue='<%#Eval("foto") %>' />

    In the code: object[] opParametros = new object[1];
                opParametros[0] = "93";
                 DsInfoEmpleado = _fwAccesoDatos.ExecuteDataset(StrCadenaConexion, "spObtenerInfoPerfilEmpleado", opParametros);
                 Repeater1.DataSource = DsInfoEmpleado;

    in web.config:
                <add name="Telerik_Web_UI_WebResource_axd" verb="*" preCondition="integratedMode"     path="Telerik.Web.UI.WebResource.axd" type="Telerik.Web.UI.WebResource" />

    the image is not displayed. Thank you for your help.
  2. Tsvetina
    Tsvetina avatar
    2481 posts

    Posted 01 Jun 2012 Link to this post

    Hi Albert,

    If you run the page in Firefox with Firebug Network tab enabled (or an identical tool), do you notice any bad requests? Also, can you confirm that you are not running the page in a web farm or web garden scenario, as this is not supported with RadBinaryImage.

    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.
Back to Top