Store them in a blob column.
If you're just talking text files, then read the text file into a variable, and insert the variable into the mysql column. That's simple.
The part that I don't get is that people are always wanting to store images in the database. Why? You can't search through image data like you could a text file. Then, when you want to display the image, you have to mess around with the headers and all that stuff. Plus you just add the extra overhead of getting all of the data out of mysql. For images, I think it's just better to store the path.
You're right about the searching of files in the database. If they are text, it could come in handy in some situations.
---JOhn Holmes...