If you are using Firefox, for example, you can use Firebug to inspect the HTTP requests the browser makes when loading your page. You can identify 3 scenarios with RadBinaryImage:
1. Binary image data is found and properly returned by the WebResource handler. This is the expected properly working result:
2. WebResource handler is not properly registered with your application and does not work. This happens when the Telerik.Web.UI.WebResource.axd resource handler is not properly registered in web.config and is not available:
3. RadBinaryImage.DataValue is null and no binary image data is to be displayed. If you do not set binary data to RadBinaryImage.DataValue until the Render phase of the control, no requests the WebResource handler for image data are made. The <img> element rendered on the page does not contain a src
tag to point to an image:
These are the 3 cases identifyable with your browser's developer tools by examining the HTTP requests. Other problems with RadBinaryImage would normally involve server-side exceptions in your application (e.g. an error thrown when the byte data passed to DataValue is not recognized as a valid image).
the Telerik team
Registration for Q1 2011 What’s New Webinar Week is now open. Mark your calendar for the week starting March 21st and book your seat
for a walk through all the exciting stuff we ship with the new release!