cmd.Parameters.Add(New SqlParameter("@StudPic", SqlDbType.Image)) If (Not String.IsNullOrEmpty(Me.Name) AndAlso System.IO.File.Exists(a.FileName)) Then cmd.Parameters("@StudPic").Value = System.IO.File.ReadAllBytes(a.FileName) Else cmd.Parameters("@StudPic").Value = DBNull.Value End If
cmd.Parameters.Add(New SqlParameter("@StudPic", SqlDbType.Image)) If (Not String.IsNullOrEmpty(Me.Name) AndAlso System.IO.File.Exists(a.FileName)) Then cmd.Parameters("@StudPic").Value = System.IO.File.ReadAllBytes(a.FileName) Else cmd.Parameters("@StudPic").Value = System.IO.File.ReadAllBytes(a.FileName) End If
cmd.Parameters("@StudPic").Value = System.IO.File.ReadAllBytes(a.FileName)
null
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)