Click here to Skip to main content
15,915,057 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am working on my ASP.NET Semester Project width MS SQL Server 2012, I have to created social website, on which user creates his profile.
My only query is that how to store images in database and then retrieve the images of user who is currently login and display on the webpage.
Posted
Comments
Schatak 7-Apr-14 7:35am    
Google it, you will get numbers of solutions, if you stuck somewhere in coding then you can ask question or discuss your problem.
THanks

 
Share this answer
 
Hi,
It is better to keep images in a folder inside your project and save the image URL in database.
Refer this:
http://www.aspsnippets.com/Articles/Retrieve-images-using-a-file-path-stored-in-database-in-ASPNet.aspx[^]
 
Share this answer
 
v2
 
Share this answer
 
It will be better if you keep images inside a folder and only save the image name inside the database.when you try to display the image of user , just retive the image name from database and set the path + imagename to image control

//You can put the image inside database by converting image to bitmap but it will reduces the performance for data access.

Try above way.. and let me know its work out or not
 
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