Click here to Skip to main content
15,899,126 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi Folks,

I am new in ASP.NET, i would like to develope a video based Application, like upload the videos, view the videos, download the videos.

Which one is good method, Store to db ? or store in a disk space ?

Any other good methods to do this ?

Please suggest !!!

Thanks,
Adersh Ram
Posted
Updated 25-Oct-12 2:05am
v2

storing in disk space make your application more faster then storing into db.
so crete the uniq id for each image and store its name and path into database and file in disk.
 
Share this answer
 
Comments
RaisKazi 25-Oct-12 9:59am    
My 5.
Solution1 has the exact answer to your Question. Storing Images/Videos in your application folder is always better as compare to storing in DB.

You may assign unique file-names to your Images/Videos while saving them. For Unique names you may use GUID. And then save that file name/path in your DB table.
http://msdn.microsoft.com/en-us/library/system.guid.newguid.aspx
 
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