Saving large files to a db using hibernate?
I'm attempting to save large files (about 1Mb) to a database using hibernate3. The files are being placed in the database as a backup and will be cached on the app server so I don't really need to worry about performance to much. I was hoping of avoiding the use of byte arrays due to memory restrcitions, and wanted to use streams similar to the spring imagedb sample app instead.
Currently I'm thinking of making a hibernate custom type that handles a java.io.File similar to the BlobByteArrayType... Can anyone offer any insight? Has this problem been solved for me?