You need to store uploads like images in a BLOB datatype, text files can of course just be stored as text. I've not used it in a while so my Oracle's a bit hazy, but that's what the BLOB is what the datatype's called in MySQL. You need to open a file pointer to the uploaded file, read it's contents into a variable, then insert the variable to the db. You also need to remember to supply the correct mime-header when you retrieve the upload from the table again (ie. image/jpeg for a JPG). However, why would you choose to save file uploads into the database? It's much faster (both saving and retrieving) to save the uploads to disk and store them in the webserver's filesystem. HTH.
-geoff