How to show picture into Telerik Window from array byte

3 posts, 0 answers
  1. Dario
    Dario avatar
    40 posts
    Member since:
    Jun 2018

    Posted 23 Apr 2020 Link to this post

    I need to retrieve a product picture that it stored into ERP database.

    Using EF Core I receive a byte array data for this field.

    I would using a Telerik Window to click a custom button into a Grid, where user can click it to show a picture.

    How can I do this?

  2. Aleksandar
    Aleksandar avatar
    265 posts

    Posted 27 Apr 2020 Link to this post

    Hello Dario,

    I would advise you to refer to the following example from our GitHub repository, where it is demonstrated how to load the binary image in the Grid cells:

    Though this is not an ASP.NET Core project, but an ASP.NET MVC one you could use it as guidance in implementing the desired functionality.

    Progress Telerik

    Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
    Our thoughts here at Progress are with those affected by the outbreak.
  3. Dario
    Dario avatar
    40 posts
    Member since:
    Jun 2018

    Posted 07 May 2020 in reply to Aleksandar Link to this post

    I followed the instructions, but unfortunately I was unable.

    Probably the file saved in binary in SQL Server has an incorrect format, I think that relative base64 value is wrong.

    I chose to map a static path to reach a copy of the file. Thanks anyway.

Back to Top