Hi !
I see your code and try to use in my app, but i received an "Out of memory"
at this line: pictureBox1.Image=Image.FromFile(strfn);
I´m Using VB Express and of course the syntaxs are diferent.
Can you please help me, I´m a few days "googling" and I can´t resolve this problem.
Thanks
My code VB Express working with Northwind.sdf DataBase SQL Compact
cn.Open()
Dim barrImg As Byte() = cmd.ExecuteScalar()
Dim strfn As String = "c:\papa.jpg" ' Convert.ToString(DateTime.Now.ToFileTime())
Dim fs As New FileStream(strfn, FileMode.Create, FileAccess.ReadWrite)
fs.Write(barrImg, 0, barrImg.Length)
fs.Flush()
fs.Close()
If File.Exists(strfn) Then
FotoPictureBox.Image = Image.FromFile(strfn)
End If