Solved

How to insert image into sqlserver using vb.net

Posted on 2011-03-13
6
837 Views
Last Modified: 2012-05-11
Hi guys,

i want need add 3 image into sql server database using vb.net windows application

how to insert and show ?

thank you
0
Comment
Question by:l0o3
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
  • 2
6 Comments
 
LVL 3

Accepted Solution

by:
1303gun earned 500 total points
ID: 35130477
Hello.

I've made a sample project demonstrating how to do so. It is attached.

To make it work you have to create a sample database with a table named Images, having the following columns:

ImageId (uniqueidentifier) - Primary Key
Name (nvarchar(MAX))
Bytes (image)

Or you can use the database script that is inside the attached ZIP file.

Then you have to change the connection string on the MainForm's connectionString variable according to your configuration.

The project was made on Visual Studio 2010.
ImageToSql.zip
0
 

Author Comment

by:l0o3
ID: 35130548
thank you 1303gun, how to import .sql file?
0
SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

 

Author Comment

by:l0o3
ID: 35130552
how to create database using .sql file
0
 

Author Closing Comment

by:l0o3
ID: 35130747
thanks 1303gun u have gtalk or yahoo ID?
0
 
LVL 3

Expert Comment

by:1303gun
ID: 35133114
You're welcome. Sorry for not responding you about the SQL. I just had a long power outage here. I have yahoo ID: alex1303gun.
0

Featured Post

Instantly Create Instructional Tutorials

Contextual Guidance at the moment of need helps your employees adopt to new software or processes instantly. Boost knowledge retention and employee engagement step-by-step with one easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: Kraeven
Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
Introduction As chip makers focus on adding processor cores over increasing clock speed, developers need to utilize the features of modern CPUs.  One of the ways we can do this is by implementing parallel algorithms in our software.   One recent…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question