HTML Binary Image in HTML Textbox

2 posts, 0 answers
  1. hamza
    hamza avatar
    1 posts
    Member since:
    Mar 2016

    Posted 02 Apr 2016 Link to this post

    I am setting the value of Html Textbox like below :

    <img src="data:image/png;base64........" />

    but the telerik report is showing blank white page instead of the image.

    Is telerik report interprets image tag? or we can achieve that.



  2. Stef
    Stef avatar
    3611 posts

    Posted 04 Apr 2016 Link to this post

    Hi Hamza,

    The HtmlTextBox item supports only certain text formatting option listed here.

    If you want to display image, you can use the PictureBox item, where the base64 string will have to be converted to an Image object in code. For the purpose you can use a custom function to set the PictureBox.Value property which functi8on will be evaluated on processing the report and displaying it.

    Let us know if you have any further questions.

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
Back to Top