Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
I have 50 images each image size is 2.5 GB and I want to store all images in SQL Server 2012 using ASP.NET with c#.
How can I do this please give me source code for it and how it is possible??
Posted
Comments
[no name] 26-Sep-13 7:40am    
Why would you expect us to just give you source code? Why don't you use the file system for what it was designed for and just save the path to these files in your database?
Thanki Vivek 28-Sep-13 1:32am    
Thanks for suggestion but it is my client requirement so that's why I save image in Database....
coded007 26-Sep-13 9:46am    
use blob data type and give a try

1 solution

yeah you can do this by using filestream data type in sql server 2012.

Reference for data type:

http://social.technet.microsoft.com/wiki/contents/articles/6519.storing-images-and-photos-in-sql-server.aspx[^]

For Image Coding Reference:

Storing and Retrieving Images from SQL Server using Microsoft .NET[^]
 
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