I am working on a program that needs to store images from a PictureBox into an Access database and later retreive (and display them) in the same PictureBox. I am stuck on the saving portion.
My "ideal" code would be something like the following:
Obviously, that doesn't work. "Picture" is an OLE Object (in Access). I read in other threads about storing the data into a FileStream ala:
http://www.vbdotnetforums.com/showthread.php?t=477
and
http://www.vbdotnetforums.com/showthread.php?t=527
... but I don't have a filename (I assume another button deals with the uploading of the picture into the PictureBox).
That said, I'm lost and stuck. Any help would be greatly appriciated!
Thanks
My "ideal" code would be something like the following:
VB.NET:
objAddCommand.Parameters("Picture").Value = picImage.Image
Obviously, that doesn't work. "Picture" is an OLE Object (in Access). I read in other threads about storing the data into a FileStream ala:
http://www.vbdotnetforums.com/showthread.php?t=477
and
http://www.vbdotnetforums.com/showthread.php?t=527
... but I don't have a filename (I assume another button deals with the uploading of the picture into the PictureBox).
That said, I'm lost and stuck. Any help would be greatly appriciated!
Thanks