fs = New FileStream(oopenpic.FileName, FileMode.OpenOrCreate, FileAccess.Read) br = New BinaryReader(fs) mybyte = br.ReadBytes(fs.Length) fs.Close() sql = "INSERT INTO tblimagetest VALUES(@thebyte)" cmd = New SqlCommand(sql, con) cmd.Parameters.Add("@thebyte", SqlDbType.VarBinary).Value = mybyte cmd.ExecuteNonQuery()