Which is the better to store the Image/Video between Base-64
OR URL of Server Path(physical Path i mean)
in MySQL. And what could be variable
and size
to store the Video of size ~3MB
Asked
Active
Viewed 44 times
0

Chanikya
- 476
- 1
- 8
- 22
-
https://stackoverflow.com/questions/3748/storing-images-in-db-yea-or-nay – juergen d Aug 02 '18 at 04:41
-
An interesting question for you to read through-> https://softwareengineering.stackexchange.com/questions/150669/is-it-a-bad-practice-to-store-large-files-10-mb-in-a-database – N00b Pr0grammer Aug 02 '18 at 04:42
-
For anything over 100k, it's best to store the path only. – Strawberry Aug 02 '18 at 06:17
1 Answers
0
Store your videos in your hosting. And store the link of video in MQSQL as a text data type.
mysql Query:
create table videos(
id int not null auto increment,
v_name varchar(100),
v_url text
);

Shenald
- 143
- 1
- 12