I\'m working on a java web application in which files will be stored in a database. Originally we retrieved files already in the DB by simply calling getBytes o
Note that the getInputStream of the DataSource must return a new InputStream everytime called. This means, you need to copy somewhere 1st.
For more info, see
http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4267294