0
발생 sql.exe처리되지 않은 예외 'System.NullReferenceException'형식의 처리되지 않은 예외가 발생 sql.exe
추가 정보 : 개체 참조가 개체의 인스턴스에 설정되지 .
Dim imageData As Byte() = DirectCast(cmd.ExecuteScalar(), Byte())
If Not imageData Is Nothing Then
Using m1 As New MemoryStream(imageData, 0, imageData.Length)
m1.Write(imageData, 0, imageData.Length)
PictureBox1.BackgroundImage = Image.FromStream(m1, True)
End Using
end if
가능한 복제본 [NullReferenceException은 무엇이며 어떻게 수정합니까?] (http://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-and-how-do-i-fix- 그것) – LarsTech