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

[Solved] Image byte[] in Grid and RowDetails

5 Answers 146 Views
GridView
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
Tomasz Wisniewski
Top achievements
Rank 1
Tomasz Wisniewski asked on 15 Dec 2010, 10:32 PM

Hi,

I'm building a small example with the Northwind database. The Employees table has a column Photo which is mapped by Entity Framework as Byte[]. I'm trying to use the ImageColumn in my grid or and Image field in my details with the BinaryToImageConverter but all I get is a catastrophic exception.

Any suggestion on how to solve it?

5 Answers, 1 is accepted

Sort by
0
Vlad
Telerik team
answered on 16 Dec 2010, 08:18 AM
Hello,

 Please verify if this picture data can be displayed with normal Image outside of the grid. 

Best wishes,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Tomasz Wisniewski
Top achievements
Rank 1
answered on 16 Dec 2010, 11:22 AM
I've tried to dispaly the photo in the RowDetails with the Image control and BinaryToImageConverter setp up but the same thing happens. Your demos run on Northwind DB and it's fine :/
0
Vlad
Telerik team
answered on 16 Dec 2010, 11:34 AM
Hello,

 We are using our own version of Northing with modified images - the images in the original version are not compatible with Silverlight.  

All the best,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
0
Tomasz Wisniewski
Top achievements
Rank 1
answered on 16 Dec 2010, 11:40 AM
What images are you using? How they are encoded in the database so I can use them with your controls?
0
Vlad
Telerik team
answered on 16 Dec 2010, 11:46 AM
Hi,

 You do not need special images for our controls - just images compatible with Silverlight. You cannot for example display OLE images (original Northing images types) in Silverlight.

All the best,
Vlad
the Telerik team
Browse the videos here>> to help you get started with RadControls for Silverlight
Tags
GridView
Asked by
Tomasz Wisniewski
Top achievements
Rank 1
Answers by
Vlad
Telerik team
Tomasz Wisniewski
Top achievements
Rank 1
Share this question
or