Click here to Skip to main content
15,885,365 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
My project is school management web project.In my project, I have to store image.Where I should store image in database or other.Please give me away how to do it and explain me why do that. Most people are stored image in project and server.
That is OK? Why?Please quickly answer me.Thanks to all.
Posted

In my opinion, you should store in FileSystem because when you need to store images having high resolutions, then the byte data you will store in Database would unnecessarily make it overloaded.
Also reading and writing images into Database is time consuming, which will make your application slow.

If you store in FileSystem, you will have the better control over it. You can go for compression algorithms, if you require. But as far as your School Management System is concerned, you may not require that.

So, go for FileSystem. It would be better than Database. :)
 
Share this answer
 
v2
Comments
Ron Beyer 22-Jan-14 0:13am    
Or a hybrid approach for fast retrieval. Store the name/path of the image so you can relate it to other data, but put the actual file itself in the file system. +5
Thanks Ron. :) Oh yes, that is indeed a great idea.
RaviRanjanKr 22-Jan-14 13:47pm    
5+
Thanks RaviRanjankr. :)
Storing Uploaded Files in a Database or in the File System with ASP.NET[^](This has comparison File System vs Database - Advantages/Disadvantages, etc.,)
 
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