Click here to Skip to main content
15,912,069 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
How can i load images from VB.net to datatbase(SQL) and database to VB.net ?
Pls help me ?
Posted

Best practice is not to store the image in the database but rather store the path to the image. (maybe copy the image to a predefined path so you can back them up easily)

If you still want to store it in the database have a look at these articles:

Storing and Retrieving Images from SQL Server using Microsoft .NET[^]

Save An Image Into SQL Server 2000 Database[^]

http://www.shabdar.org/store-save-images-in-sql-server.html[^]
 
Share this answer
 
hi,
Use this link

http://www.dotnetcurry.com/ShowArticle.aspx?ID=129[^]


Some tips;)
1)Try to cerate a class library for ubloading and retriving the image only
2)Try to upload the images in one master table (tbl_image) and link them ( ;)obvious forgien key concept ) to main tables
These 2 point can help you alot as it does to me too ;) you can use the same code as provided in link it 100% perfect.
Let me know if you find any problem in this uploading module



;) Enjoy life
 
Share this answer
 
Check this sample code in VB.NET. It compiles in VB 2008 and really works. It also has an internal viewer.
Sergey Chepurin.
 
Share this answer
 
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900