This is a migrated thread and some comments may be shown as answers.

How to show picture into Telerik Window from array byte

2 Answers 345 Views
Grid
This is a migrated thread and some comments may be shown as answers.
Dario
Top achievements
Rank 1
Veteran
Dario asked on 23 Apr 2020, 07:34 AM

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 Answers, 1 is accepted

Sort by
0
Aleksandar
Telerik team
answered on 27 Apr 2020, 04:10 PM

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:

https://github.com/telerik/ui-for-aspnet-mvc-examples/tree/master/grid/grid-render-byte-and-base64-images-and-show-preview-using-window

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.

Regards,
Aleksandar
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.
0
Dario
Top achievements
Rank 1
Veteran
answered on 07 May 2020, 10:50 AM

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.

Tags
Grid
Asked by
Dario
Top achievements
Rank 1
Veteran
Answers by
Aleksandar
Telerik team
Dario
Top achievements
Rank 1
Veteran
Share this question
or