Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
It's a simple question, but I couldn't find an appropriate query to insert audio or video files into mysql

what I want to do is to store audio and video files in mysql database
so I create table using below query
create table ebook(
name varchar(20) not null,
data mediumblob);

then, what query should I write to insert audio or video files?
Posted

1 solution

I suggest storing the audio and video files in some storage device and only store their paths and meta information in the database. When you need to retrieve these media files, then look for their paths in the database.
Read more: what-is-the-best-way-to-store-media-files-on-a-database[^]
 
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