i have already searched but could not find the proper answer. see the below code and tell me what to do. the name of my imagebox is picbox thanks in advance
try
{
int w = Convert.ToInt32(RegID.Text);
byte[] image = null;
{
var photoRecord = (from accom in re.Students
where accom.RegistrationNo == w
select accom).First();
image = photoRecord.Picture;
}
}
catch (Exception)
{
throw;
}
photoRecord? There is not enough information to answer this question.