How do I put a binary file such as a mp3, gif, or jpg file in MySql? I understand there are binary data types in MySql to hold sound or picture data, but I'm confuse on how you actually use them.
For example, let's say I created this table to hold mp3 files...
create table mp3 (
mp3ID int not null auto_increment primary key,
mp3_name MEDIUMBLOB
);
Now, let's say I created a SQL file to input the files into the database...
insert into table mp3 values
(NULL, [insert file here]);
My question is "What exactly do I put in the bracket where it says 'insert file here'?".
Thanks in advance.
For example, let's say I created this table to hold mp3 files...
create table mp3 (
mp3ID int not null auto_increment primary key,
mp3_name MEDIUMBLOB
);
Now, let's say I created a SQL file to input the files into the database...
insert into table mp3 values
(NULL, [insert file here]);
My question is "What exactly do I put in the bracket where it says 'insert file here'?".
Thanks in advance.