File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Object Relational Mapping and the fly likes Retrieving binary data via Hibernate Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of Practical Unit Testing with TestNG and Mockito this week in the Testing forum!
JavaRanch » Java Forums » Java » Object Relational Mapping
Reply Bookmark "Retrieving binary data via Hibernate" Watch "Retrieving binary data via Hibernate" New topic
Author

Retrieving binary data via Hibernate

Bing Qiao
Greenhorn

Joined: Oct 24, 2006
Posts: 21
Hello,

I've searched for a long time and couldn't find an answer.

Is there a way to have Hibernate return the InputStream instead of blob or byte[], so the data can be streamed to the web client?

Can a custom data type achieve this?

Thanks very much for your help!

Bing
 
 
subject: Retrieving binary data via Hibernate
 
Threads others viewed
Caching in Hibernate
need Suggestion
hibernate code and data source
Hibernate and connection pooling
hibernate cache
WebSphere development made easy
without the weight of IBM tools
http://www.myeclipseide.com