VB.Net WindowsForm upload image to SQL 2008 Database

I have a simple table in a sql database:
     Image_name (varchar(50))
     Image_Data (image)

I have a winform in Visual studio using a dataset to connect to the database.

on the form I want only two fields, name and image.  I need the user to be able to choose the image from the file system and place it in the image box on the form and then save the image name and image to the sql database.  

Thank you for your help.
rtayIT DirectorAsked:
Who is Participating?
Use the OpenFileDialog so the user can choose the image from the file system.
dim of as new OpenFileDialog

as to storing in the DB, I always preferred to store the link and keep the image in the file system.

This should help you:
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.