Skip Navigation LinksHome > Categories > Code from a Category

How to Save Images into Database using VB.Net



User Name: codelecturer
Name: Mike Chauhan
Contact Me: www.datawebcoder.com/ContactUs.aspx
Home Page: www.datawebcoder.com
6 years of total IT experience including programming, application development, System Maintenance . 3 years of Experienced and expertise in .Net Framework VB, Visual Basic.Net, ASP.Net 2.0, 3.5 and AD... [More]
Viewed Times: 1571
Add Date: 11/12/2011
Here is the explanation for adding images into database.
The following code establishes a database connection and inserts a file in the "Pic" field. Save the file as SaveImage.vb
Compile the file as vbc SaveImage.vb /r:system.data.dll /r:system.dll
A file will be inserted in the Database each time we execute SaveImage.exe.

Post a Comment

Name: (Optional)
Email: (Optional, you can get an email if somebody replys your comments)*
Email me if somebody respons my comment below:
Details**:
Enter Text
as Below:
(case insensitive, if hard to read, click the "get a new one" button)
 
    
* Your email address will not be shared with any third parties for any reason.
** Maximum 1000 charactors.