I\'m getting some documents from the web and many of them are binary files (executables, PDF, etc.). In Java, what is the correct type to hold the binary data until save it in d
Don't save files directly to a database. Save them to a filesystem instead and save the path to the file in the database. That's what file systems are for. You will get performance problems if you stuff binary files into your database.