Click here to Skip to main content
15,905,508 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear Friends.

Now a days, I am developing a website in ASP.Net using SQL Server 2005. My Site, contains a lot of images. I can not decide that where should I store these images. Should I store them in SQL Database or any image hosting Site. As I have seen that so many websites store their images on image hosting sites (Like tinypic.com)
Please Guide me how should I handle these images. Which method would be better for my site. If I store these images to tinypic.com, then How I can Store and Retrieve dynamically.

Waiting for a satisfactory Answer.
Posted

Well, you have to take a call. We can only suggest based on various situations.

If the images are user data (profile pic for eg), I would store it in database. Benefit is that, you might want to change the UI in future, create a supporting mobile App for it. In that case it becomes handy.

For the static images, I would store them in a folder within web application.

Personally, I dont like hosting my images to hosting site for couple of reasons:
1. I don't like my content to be present out of my bound.
2. I am not sure about the availibility.
3. many more...
 
Share this answer
 
If these are static images that rarely change then keep them in an Images folder within your solution.
 
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