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

I displayed an image using the RadBinaryImage

1 Answer 46 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ALBERT
Top achievements
Rank 1
ALBERT asked on 29 May 2012, 10:32 PM

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

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

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

the image is not displayed. Thank you for your help.

1 Answer, 1 is accepted

Sort by
0
Tsvetina
Telerik team
answered on 01 Jun 2012, 01:29 PM
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.

Greetings,
Tsvetina
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
General Discussions
Asked by
ALBERT
Top achievements
Rank 1
Answers by
Tsvetina
Telerik team
Share this question
or