I've searched countless forums for the answer to this one, and so far, I haven't found a concrete example or solution.
I'm relatively new to VB.Net, and what I'm trying to do (without success, so far) is to save a BLOB (binary large object) to a varbinary(max) field type in SQL Server 2005. The BLOB is an image, which is selected through an OpenFileDialog box. According to the tutorials that I've read, I should convert the image to bytes so that I can store it under the varbinary(MAX) field type, and this is what I've come up so far...
|
I have only one column under tblimagetest, and that is the varbinary(MAX) field type image_value.
When I debugged the program, it went off without a hitch, meaning it was supposed to be saved in the table...but to my confusion and bewilderment, upon inspection of the tblimagetest table, the image_value field is empty. :( I'm completely at a loss here...was there something I missed?
Your replies will be very much appreciated.
Thank you. :)
Replies
Know the answer? Post it — somebody with the same question will find it here.