In general, its a bad idea to store files in the database, if you take a look at the MySQL and PostgreSQL manuals, they actually erccomend against it. The filesystem does a much better job of caching and handling the file than the database will.
However, you can look at BLOB objects to store the binary data. www.mysql.com/blob