1

How do I use rad binary image outside of a databound control ?

here is a link to the control :

http://www.telerik.com/help/aspnet-ajax/radbinaryimage.html

1 Answer 1

2

It's just image binary data in the DB that you want to be put into an image?

Convert from binary data to an image control in ASP.NET

Faithfully copied..

Create a regular HTML img element like so:

<img runat="server" id="image"  />

And in code behind do this:

image.src="data:image/png;base64,"+Convert.ToBase64String(imageBytes);

Where imageBytes is a byte[]

You are done. The image will be displayed.

Sign up to request clarification or add additional context in comments.

1 Comment

Yeah - in the same way that all images are cross browser compatible. All the Telerik control is doing is basically this but loading it from an HTTPHandler.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.