Send File with Android to Mysql [closed]

0

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

    
asked by Javier fr 07.12.2016 в 17:37
source

1 answer

1

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;
    
answered by 08.03.2018 в 17:34