Click here to Skip to main content
15,919,500 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Good day.

Can any one knows how to save a .jpg file in Sql Server.
Posted
Comments
Sandeep Mewara 2-May-12 3:03am    
Did you try anything?

1 solution

Image is stored in binary format in sql server or any other database.
for more detail please see this.
Store or Save images in SQL Server[^]
Save An Image Into SQL Server 2000 Database[^]

BUT...

The best way to save image in any database is like this..

1) create folder within your project folder and upload images there.
2) get image name or uploaded image path and save that name to your database.
3) while fetching that image you need to use that path or name to access physical image.
 
Share this answer
 

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