I am doing small program in VB.Net and using Sqlite Database. I Can insert a image into database but I Cannot retrieve image. I am struggling with this issue for a long time. The below code is not working. It shows the error :
Parameter is not valid
Dim picData As Byte = rs3(16) 'This is datafield (BLOB)
Dim strm As New IO.MemoryStream(picData)
Dim pictemp As Image = Nothing
pictemp = Image.FromStream(strm)
I don't know where I did mistake, Please help to solve this issue.
Thanks in advance.
Aucun commentaire:
Enregistrer un commentaire