21-05-14, 04:36 PM
تعمل شرط للتأكد من وجود الصورة اولاً كالتالي :
كود :
if not ds2.Tables(0).Rows(0).Item(0).isnull then
Dim imgByteArray() As Byte
imgByteArray = ds2.Tables(0).Rows(0).Item(0)
Dim Stream As New MemoryStream(imgByteArray, True)
Dim Img As System.Drawing.Image = New Bitmap(Stream)
imgSave.Image = Img
end if
