Click here to Skip to main content
15,885,914 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to save a movie in sql serber using blazor c #. I have various ideas but I don't think they are good.

What I have tried:

The first idea is to make that video byte []. What if I have a ... 1 tb video?
The second was to turn that video into pictures. What if that video is an hour long?
Any other ideas? if you have an idea can you make the code ??
Posted
Updated 22-Mar-22 21:10pm
Comments
Richard MacCutchan 22-Mar-22 15:52pm    
Do not save the video in the database. Save it in a special directory, and just save its path in the database.

In addition to the comments, Making a Movie Library is a good idea, where you will place your movies.
For record keeping and retrieval in quick way, you can use SQL to create Movie Library Data Bank. Where you can store movie library reference/path, title, year, date of release, duration and name of the director.
 
Share this answer
 
Quote:
How to save a movie in sql serber using blazor c #. I have various ideas but I don't think they are good.

In my opinion, the only sensible answer is to use the file system to store possibly huge files, and store only the filename and a link in database.
In a server, the file system is specially crafted to store files, including huge files.
 
Share this answer
 
v2

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