• Post Reply Bookmark Topic Watch Topic
  • New Topic

[hibernate] how to read a very large blob from from db, and store it in a file ?

 
Dragan Jovanovic
Greenhorn
Posts: 15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Of course, I don't want to use byte[], because I could get a memory overflow.
I found a solution for opposit problem :

and I want to connect a blob object to OutputStream, analog to this, but I can't find appropriate function. Any idea ?
I'm working with mysql.
 
my overalls have superpowers - they repel people who think fashion is important. Tiny ad:
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!