Anu

Anu

  • 1.6k
  • 201
  • 9.1k

image display issue

Dec 3 2024 6:22 PM

Hi, I have an MVC application where I am using devexpress MVC extension to display a grid. Now I want to show image in a column. The image is stored in the database as varbinary and in the application I have added the below statement for displaying the image.

 settings.Columns.Add("image", MVCxGridViewColumnType.BinaryImage);

But in the grid its showing as System.byte[] instead of actual image.In the debug mode in visual studio, I can see the binary value is coming as System.byte[] in the data table as a stored procedure result.

please help me resolve this issue?

Thanks,

Anu


Answers (2)