I have a byte array created in Java. It represents content of some file. I don\'t know exactly the maximum size of this array. It can be different sizes. I want to store it
Use varbinary to store byte arrays of arbitrary length in MySQL.
use a blob field
blob
java serialblob
mysql blob
Use BLOB, medium blob , varbinary
medium blob
Mysql Choosing the Right Type for a Column