I have a JSF form where the user uploads data. Now I need to store the file uploaded (could be pdf, doc, xls, etc) into the database. Now of course this file will be loaded later by reviewers. Any idea what is the best way to do this? Serialization? and if yes, any where specific I should look?
I've seen that most serialization deal with user created objects (ones I am familiar with) like employee objects, buildings, etc. But I don't know how to represent the file document as object. as In what to pass to inputReader to get the binary string...
Thanks,