Insert image to mysql table

gate7cy

Well-known member
Joined
May 11, 2009
Messages
119
Programming Experience
3-5
I am trying to insert/update a table in MySQL. I am trying to insert an image file to a column define in MySQL as a 'blob' type. My query is as folows

VB.NET:
update items set picture = '" & xxx & "'

xxx is declared as :

VB.NET:
    Dim xxxx As Image = (Me.PicturePictureBox.Image)

I get this error:

Operator & is not defined for types String and System.Drawing.Bitmap

How can I insert my image. Thanks for the replies.
 
Back
Top