Hi
i solved this problem by followings codes,in my datatable if i get binary values then it not empty,if datatable get null value or blank row then that row id db null.
Dim data = objdtr.Rows(0)("LogoImg")
If (TypeOf data Is DBNull) Then
PictureBox6.Image = Global.Hospital.My.Resources.Resources.P123__half_size_
Else
End IF
I will save png image in sql server as binary format,so only can retrieve bytes and convert into image again and use it in any place.some time that image column is empty.
i am select that column and fill in datatable and get that value in data,and i check it like type of data is dbnull or not,if it is null i will pass default image from resource folder,if not then convert byte and image and pass to picturebox.
Why i cant check directly data is null or not,or row count or data ="" (double quots),bcz it show blank row ,so cant count,if it is check "NULL" or "" it show error like "System.DBNull' to type 'System.Byte[]".
Regards
Aravind