Assuming you already have your table created,
open the file, read it into a variable, prepare a SQL statement (INSERT INTO table VALUES ('filename', ?)), call execute and pass the variable containing the file, and check to see that the insert succeeded.
It's really no different from inserting any other data into a database.