Without knowing what you actually want to do, you should not even think about hacking out some code...
First get those specs down on paper, so you actually know what you're talking about.
So again, do you want to store the actual file or do you want to parse the content of the file in some way and store the data contained in it?
The first is easy, the second can be easy or hard depending on the file format and layout.
Files can be saved in database inform of stream. I.e You first of all convert the file to an inputstream or a byte array them save the content in a column (as a field) of a table in a database.
When saving this file ensure to save the file extension in another column as this will help you load an application capable of reading it when displaying it as an output