You should look at using MySQL's LONGBLOB or LONGTEXT data type. They can store up to 4 gigabytes of binary or textual data, respectively. You can use the regular MySQL JDBC connector methods for storing and retrieving LONGBLOB and LONGTEXT types.
However, storing this kind of data in the database is inefficient. You should seriously consider storing the text file on the file system instead. You can put it in the /WEB-INF/ folder to prevent direct access to it by HTTP requests.