Completed
Last Updated: 13 May 2020 13:07 by ADMIN
Release 2020 R2
Karim
Created on: 13 Aug 2019 01:36
Type: Feature Request
7
PictureBox Image as Base64

It would be very handy, if the value property of the PictureBox would resolve images from base64 strings besides the Image, Image byte[], relative or absolute URI.
It should be fairly simple to implement. I wrote my own user function for this. It would be beneficial to have this out of the box.


[Function(Category = "Image", Namespace = "ImageFunctions", Description = "Converts a base64 string to an image byte array")]
public static byte[] ConvertFromBase64(string imageString)
{
    if (imageString != null)
    {
        // Convert base 64 string to byte[]
        byte[] imageBytes = Convert.FromBase64String(imageString);
        return imageBytes;
    }
    else
    {
        return null;
    }
}

3 comments
ADMIN
Todor
Posted on: 09 Mar 2020 09:58

Hi Ephraïm,

You may find information on how to utilize the User Function and how to register them in the application hosting the Reporting Engine in the User Functions article - the bottom part.

Regards,
Todor
Progress Telerik

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
Ephraïm
Posted on: 02 Mar 2020 13:36

Hello KSafadi,

I'm having the same problem of binding base64 strings as image value in Telerik Reporting. KSafadi, how do you use your ConvertFromBase64 function ? I would like to use it for pictureboxes in Telerik Reporting.

 

Thanks for you help,

ADMIN
Silviya
Posted on: 16 Aug 2019 11:07

Hi KSafadi,

Thank you for your input! We will consider adding this function to our list of built-in functions.

Best Regards, Silviya
Progress Telerik

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