23-12-19, 11:30 AM
السلام عليكم
سؤالي :
ليش ما يقبل معي حفظ الصورة
رغم اني عملت الكود هذا
يعطيني السبب هذا Value of type 'Byte()' cannot be converted to 'Byte'
سؤالي :
ليش ما يقبل معي حفظ الصورة
رغم اني عملت الكود هذا
يعطيني السبب هذا Value of type 'Byte()' cannot be converted to 'Byte'
كود :
Try
Dim Byteimage() As Byte
Dim bmpImage As New Bitmap(picDic.Image)
Dim ms As New MemoryStream()
picDic.Image.Save(ms, picDic.Image.RawFormat)
Byteimage = ms.ToArray()
Save_Studant(Me.cmbID.Text, Me.cmbDicName.Text, Me.txtDicNo.Text, Me.DTPIssu.Value, Me.DTPExp.Value, Byteimage)
Catch ex As Exception
MsgBox(ex.Message)
End Try