阅读背景:

如何使用Hibernate将数据流传输到数据库BLOB(在内存中不存储字节[])

来源:互联网 

I'm looking for a way to stream binary data to/from database. If possible, i'd like it to be done with Hibernate (in database agnostic way). All solutions I've found involve explicit or implicit loading of binary data into memory as byte[]. I need to avoid it. Let's say I want my code to be able to write to a local file a 2GB video from database (stored in BLOB column), or the other way around, using no more than 256Mb of memory. It's clearly achievable, and involves no voodoo. But I can't find a way, for now I'm trying to avoid debugging Hibernate.I'm looking for a way to stream binary data to/




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: