https://Dataverse.org is used by The Royal Danish Library (I have made a setup while employed there) - glassfish server with PostgreSQL as databasebackend. A very detailed documentation of how to setup is available too.
Works fine and is free. Be sure to follow recommendations from dataverser.org.
Basically, you can store binary data by using blobs but that is not the best practice.
A better approach would be to store your information in the database and to add a varchar column in which you store the folder and file name where the file is stored on your computer. Then you can retrieve it from there without bloating your database through excessive use of blobs.