I have a question, is it correct to save a File in the Database? and first of all you can send a File to Mysql ?. Thank you I await your answers
I have a question, is it correct to save a File in the Database? and first of all you can send a File to Mysql ?. Thank you I await your answers
Surely you have solved the doubt but for someone else who has this question.
To save a file in the database, you can use longBlob
or% BLOB
, this is the official documentation to use this type of data Blob
This is an example of how to use it, it is a table to save images
CREATE TABLE imagenes (
ID_IMAGEN INTEGER AUTO_INCREMENT,
IMAGEN BLOB,
PRIMARY KEY (ID)
) ENGINE=InnoDB;