How to convert an InputStream to a DataHandler?

后端 未结 7 761
挽巷
挽巷 2020-12-05 07:20

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

7条回答
  •  臣服心动
    2020-12-05 07:54

    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

提交回复
热议问题