Answered by:

Images not showing up

Question

Public Class PalListStudent
<Key> _
Public Property StudentId() As String
Get
Return _StudentId
End Get
Set(value As String)
_StudentId = value
End Set
End Property
Private _StudentId As Integer
Public Property ParentId As Integer
'<Association("PalParentListStudents", "ParentId", "Id", IsForeignKey:=True)> _
'Public Property Parent As PalParent
Public Property StudentName() As String
Get
Return _StudentName
End Get
Set(value As String)
_StudentName = value
End Set
End Property
Private _StudentName As String
Public Property GradeLevel() As String
Get
Return _GradeLevel
End Get
Set(value As String)
_GradeLevel = value
End Set
End Property
Private _GradeLevel As String
Public Property SchoolName() As String
Get
Return _SchoolName
End Get
Set(value As String)
_SchoolName = value
End Set
End Property
Private _SchoolName As String
Public Property FileImage() As Byte()
End Class

FileImage is a byte array and I use this routine to convert it to a byte array:

All replies

I think I had to use a image control to display the image. I don't have time to dig through the code, but I remember I spent a considerable amount of time figuring out how to get LightSwitch to show the images consistently. You can download the code. Sorry
I know it is not in VB :(