1. Blob into Oracle: about 15% are filled with \00 stackoverflow.comUnder Weblogic 10, I am using Hibernate to store data into several tables with BLOBs. It's always worked fine but the customer found specific circumstances where 15% of the BLOBs have ... |
2. Blob in Java/Hibernate/sql-server 2005 stackoverflow.comI'm trying to insert an HTML blob into our sql-server2005 database. i've been using the data-type [text] for the field the blob will eventually live in. i've also put a '@Lob' ... |
3. Hibernate/hsqldb 2 Cannot Hydrate Blob Column stackoverflow.comI am trying to load an entity with byte data (annotated with @Lob) from an HSQL 2.0 database using Hibernate 3.5.6. This entity is able to be saved without any problems ... |
4. java.lang.UnsupportedOperationException: Blobs are not cacheable stackoverflow.comAfter adding |
5. hibernate and BLOB = problem? coderanch.com |
6. hibernate blob objects coderanch.com |
7. How to upload a file through Hibernate(BLOB) coderanch.com |
8. Handling Oracle Blob with Hibernate coderanch.comPMTESTDTO dto = new PMTESTDTO(); dto.setId(args[0]); File inputFile = new File(args[1]); FileInputStreamfis = new FileInputStream(inputFile); log("##############Got the File Stream"); dto.setDdStream(fis); log("##############steam set in DTO"); fis.close(); log("##############stream closed"); SessionFactory sessionFactory = new Configuration().configure().buildSessionFactory(); log("##############SessionFactory created..."); Session session = sessionFactory.getCurrentSession(); log("##############Got Session"); session.beginTransaction(); session.connection().setAutoCommit(false); log("##############Transaction Started...\nSaving DTO"); session.save(dto); log("##############DTO Saved"); session.getTransaction().commit(); log("##############Transaction committed"); sessionFactory.close(); log("######Session Factory closed"); |
9. Hibernate BLOB retrieving coderanch.com |
10. How to read/write Blob images using Hibernate coderanch.comHi guys, I have a web application where I'm trying to store and retrieve user images in a MySQL database. I'm using Spring and Hibernate, but I don't know how to handle blob or binary datatypes. I would I appreciate it if someone that show my how to configure my hibernate.cfg.xml and how to convert the byte from HTML to the ... |
11. Hibernate reading BinaryLargeObjects(BLOBS) coderanch.com |
12. Issue while retrieving BLOB from ORACLE 9i, using Hibernate 3.0 coderanch.comIn my application I am using Hibernate 3.0, Oracle 9i and JAVA 5.0. Here I want to store more than 4000 charecter in table column. For that I used this mapping, |
13. how hibernate stores object in a blob coderanch.com |
14. Read text stored in Oracle Blob column forum.hibernate.orgHi i need to fetch the Blob from the oracle data base. we have stored the text string in it.i want to read it in java. Please help me regarding the issue. I have done the following to query the data from oracle using HQL. Mapped the table columns i need. contact.hbm.xml |
15. OutOfMemoryError working with blobs forum.hibernate.orgHi, I am experiencing out of memory errors working with some objects that contains blobs. I think the issue comes from the hibernate caching, but I don't know how to solve them. I have a class to represent a Journal that basically contains some information and a collection of Articles. The article class contains some information and the full text pdf ... |
16. Blobs best practice forum.hibernate.orgI'm using blobs to persist different kind of images to database. Due to cache limitations the entity holding the blob property is modeled as a parent/child where the parent has a set of entities holding the actual blob property. The problem is that i want to cascade "save-update" from the parent when the parent is created or updated (and I want ... |
17. could not reset reader - while using BLOB forum.hibernate.orgHai, I have an POJO entity object which has two blob properties in it. The first property is nothing but string. Code: license.setViewCert(Hibernate.createBlob(sb.toString().getBytes())); the second blob is a file stream Code: FileInputStream fileInputStream = new FileInputStream(file); license.setLicenseFile(Hibernate.createBlob(fileInputStream)); //no lines beyond this When I save this object using the method Code: @Transactional public void save(Object entity){ ... |
18. Hibernate 3.6 and Blob forum.hibernate.org |
19. how hibernate stores object in a blob forum.hibernate.orgIn my case Object is getting saved in a blob format but while we try to read and save that blob in a file it is not getting read giving EOFException and available() method of ObjectInputStream shows 0 that means there is nothing to be read . Then I checked in DB there was data in a blob format. Can anyone ... |
20. Hibernate 3.6 Blob Problem forum.hibernate.orgWe recently started using Hibernate 3.6 in a new application we're coding. I need to convert an object to a Blob for storage. I can successfully convert the object to a byte array and then create a blob from it, but I can't get it to store into the database. I've tried using the LobHelper class and the deprecated Hibernate.createBlob() methods, ... |
21. 3.2.0.ga to 3.6.1.Final Upgrade BLOB problem forum.hibernate.orgHibernate Version: 3.6.1 Weblogic : 9.2 Database : Oracle 10.2.0.4.0 Hibernate Mapping |
22. Need Hibernate-Postgres-Blob Help forum.hibernate.orgI have a file I would like to save as a Blob (or something similar) as a column in a Postgres table. In my Hibernate mapping I refer to that column as type java.sql.Blob: |
23. Blobs in Postgres 8.4 forum.hibernate.org |
24. Where is http://www.hibernate.org/56.html ? Oracle Blob forum.hibernate.orgNewbie Joined: Fri Jul 15, 2011 1:27 pm Posts: 2 I am experiencing a ORA-01460: unimplemented or unreasonable conversion requested exception when attempting to insert files that are larger than 4k. I am using Oracle 11g with ojdbc6.jar. (I've tried ojdbc14.jar and ojdbc5.jar with same results) I keep seeing references to http://www.hibernate.org/56.html which is supposed to hold the key to resolving ... |
25. Blob Image retrieval problem in Hibernate forum.hibernate.orgI have a thick client application in which I want to save an image into DB. I am sending an the as a byte[] byte[] array = ImageClass.getImageBytes(imagePath); the byte[] is converted to a SerialBlob in setAttributes methode in POJO my bean class public class School { private int schoolId; private String schoolName; private Blob logo; private String schoolType; public School(){ ... |
26. About use Hibernate2 to access a Blob type column in ORACLE forum.hibernate.orgThe database I'm using is ORACLE 9.2. I got an ClassCastExceptiontyied when trying to use Hibernate2 to insert records to a table which contains Blob type columns. It seems that hibernate2 is trying to use the setBlob method of java.sql.PreparedStatement class. But the implementation of ORACLE seems to cast the inputted Blob object into a ORACLE specified Blob type object immediately. ... |
27. proxy blob forum.hibernate.orgHi all, I have a class mapped to a table with a blob column. I don't want to load the blob everytime I load an instance and I prefer not using the lightweight class pattern. Is there any way for me to achieve that ? I first thought of a proxied component but saw that this is not possible. I then ... |
28. Creating a BLOB in Oracle forum.hibernate.orgpublic class TBlobs implements Serializable { ... private Blob fData; public Blob getData() { return fData; } public void setData(Blob data) { fData = data; } ... |
29. Web Services and Oracle BLOB forum.hibernate.orgI'm using Hibernate as the persistance layer for a Web Service through EJBs. I have some columns that are Oracle BLOBs but all I want the user to see is a String. I wrote a custom user type which maps the Blob to a String, and for retrieval of data it works correctly. However, when I try to update or insert ... |
30. BLOB and Hybernate forum.hibernate.org |
31. Oracle - Blobs forum.hibernate.org |
32. Postgres and reading blobs forum.hibernate.orgWe've recently had to move from MySQL to PostgreSQL. I've been trying to get it to handle blobs. After some fiddling with the driver (to force it to use LOBs rather than BYTEA - not sure how I can pass a Properties object to the Postgres Connection yet...) I've managed to get a blob into Postgres via Hibernate. Hurrah! I can ... |
33. Caching and blobs forum.hibernate.orgHi, I'm using Hibernate 2.1.2 with Oracle9i. I'm following the example from the wiki on blobs and oracle and I'm also using the testcase harness from the hibernate junit tests. I get the following exception while trying to save: [junit] Blobs are not cacheable [junit] java.lang.UnsupportedOperationException: Blobs are not cacheable [junit] at net.sf.hibernate.type.BlobType.disassemble(BlobType.java:60) When I comment out the line: Configuration.setCacheConcurrencyStrategy(clazz.getMappedClass(), new ... |
34. Fighting the Blobs forum.hibernate.orgI'm currently trying a simple insert/retrieve of a row contaning a Blob (long raw). It looks like that: Code: Tt tt2 = new Tt(); tt2.setCarte((Blob)Hibernate.createBlob(new FileInputStream("e:\\Z.GIF"))); session.save(tt2); session.flush(); session.connection().commit(); session.close(); ... |
35. blob problems forum.hibernate.orgWhen asking questions, give at least: the Hibernate version # your mapping documents # the Java code between sessionFactory.openSession() and session.close() # the full stack trace of any exception that occurs # the name and version of the database you are using # a debug level Hibernate log excerpt is also appreciated |
36. blob forum.hibernate.orgUsing this class (found on this web site): Code: package 1; import java.sql.PreparedStatement; import java.sql.ResultSet; import java.sql.SQLException; import java.sql.Types; import java.sql.Blob; import net.sf.hibernate.Hibernate; import net.sf.hibernate.UserType; import net.sf.hibernate.HibernateException; public class blob implements UserType{ public int[] sqlTypes(){ return new int[] { Types.BLOB }; } public Class returnedClass(){ return byte[].class; ... |
37. Creating and storing Blobs forum.hibernate.orgI want to store an Object in a mysql database as a blob. The table row will have 2 columns one for the PK and one for the Object. Is it a simple matter of storing the object in the database as long as the O/R mapping specifies the column to be a blob.? Or do I need to convert the ... |
38. Populating blob columns with large amounts of data? forum.hibernate.orgHi I've got a file upload situation.. I'm using MySQL on a linux machine, here is the mapping to the class I'm referencing: |
39. Blob forum.hibernate.orgQuote: Hi, Everyone! Well, firstly, thank you for this forum. It's an fine decision, considering that Hibernate is an open-source tool, to answer questions of users who don't even pay for it. Well, my question is: Can I define (in a mapping) a property of type Blob in a way that it's lazy instantiatable, instead of creating an entity (a bean) ... |
40. c3p0 and Oracle Blob forum.hibernate.org |
41. PSQLException while reading a blob forum.hibernate.org |
42. Oracle Blob forum.hibernate.org |
43. Blob Syntax forum.hibernate.org |
44. deal with blob of sql server and oracle in hibernate forum.hibernate.orgHey everyone! I want to write a class to save my xml file to sql server db(if I want to use oracle db,only editing my hibernate configure file),then I also use oracle do the same thing.I hope to write the same code in the class.how can I? BTW:I tried to use Blob.I have saved blob to oracle.but sql server... Thanks in ... |
45. Hibernate and Blobs forum.hibernate.org |
46. Sybase and blobs forum.hibernate.org |
47. How to write a java object in oracle blob (common problem!) forum.hibernate.org |
48. setBytes() or setBinaryStream() with blobs forum.hibernate.orgYes, I understand that Hibernate is open source. However, I have my own job to do and was hoping that someone with some knowledge of how the Hibernate code is put together could make an effort to answer my question. I don't have time to try to swallow a mound of code like this every time I have a question about ... |
49. Postgres blob support forum.hibernate.orgThe manual warns that the blob implementions in some JDBC drivers do not work properly. Are blobs supposed to work with Postgres? I am using Postgres 8 and Hibernate 2.1.7c. When I try to fetch an object that has a blob field (contains XML) from the database, the Postgres JDBC driver apparently tries to coerce the blob value into an int! ... |
50. Blob retrieval problem forum.hibernate.orgHi I'm using a class with a java.sql.Blob attribute. When i create an object of the class everything works fine. I can get and manipulate the Blob in the session after saving. However, when i try to get later the Blob in an other session, i only get null data into. Can someone help me ? Thx |
51. Blob retrieval problem forum.hibernate.orgI have the following mappings in my config file and Im using the ojdbc14.jar and the oci driver for the oracle 10g database. |
52. upload a file into a blob forum.hibernate.org |
53. [hibernate][oracle 10g]enregistrer blob forum.hibernate.orgI have a SibImage object which contains the URL of my image. My datamodel contains an attribute: SibImage image; I thus create a hibernate type to parse my address of image in BLOB (oracle). Here is my SibImageBlobType class (only the mthoe Set interests us): Code: public void nullSafeSet(PreparedStatement st, Object value, int index) throws HibernateException, SQLException { ... |
54. Blob fails with merge on Hibernate 3 forum.hibernate.orgIn our application, using blobs works just fine when we use save(). However, when we use merge(), we get a null on nult null field exception. After tracing through Hibernate, I discovered that org.hibernate.type.Blob.replace() does not copy the blob. If I change the replace method to return 'original' instead of 'target' (target is always null) it seams to work just fine. ... |
55. Hibernate 3.0.5 and Oracle 9 BLOBs... anything different? forum.hibernate.orgQuote: OK.. but getting data *into* the blob is the challenge.. Are you saying I don't need a custom type, just call Hibernate.createBlob() with whatever I stream the information into? I found that to be problematic.. yes I have mapping like one in my post and read and save image like this : Code: public void testRead() throws IOException, SQLException { ... |
56. Using Blob gives an IllegalArgumentException forum.hibernate.orgHibernate version: 3.0 Hello everyone, First of all, I'm a newbie, so keep it in mind please. I'm trying to use a blob field, but with no sucess. I read about it and I know there are some issues for Oracle, but I'm using Firebird 1.5 so AFAIK there are no issues, right? Here's what happens... I have an action that ... |
57. Hibernate, Firebird, Blob and problems forum.hibernate.orgHibernate version: 3.0 Name and version of the database you are using: Firebird 1.5 Hello everyone, I'm getting a hard time trying to insert a string into a BLOB field in firebird, through Hibernate. Here's my mapping file: Code: |
58. Out of memory with Blob forum.hibernate.org |
59. Oracle Blob ClassCastExcpetion (I know I know...Just read):( forum.hibernate.orgOkay, I have read until my eyes are bleeding! :) I read http://www.hibernate.org/56.html I am using Oracle 9i with jdbc-thin. I am deploying to SAP's App Server (Stop laughing) I have an object I am saving. It has a collection of children with a BLOB. I am using the Interceptor (BTQ, nice pattern!!!!) to save the blob. And of course I ... |
60. Oracle9 and Blob > 4k forum.hibernate.org |
61. Help! looking for a BLOB/Hibernate3/PostgresSQL example! forum.hibernate.org |
62. Blob Type forum.hibernate.org |
63. How to read or write Blob(BLOB) object forum.hibernate.orgWhen I use Hibernate write a Image into database(Oracle10g) MY code like these,but when I run it ,it has ClassCastExcetiion (Blob blog=(BLOB)tp.getTp()) the type of tp.getTp() is Blob /** * * @param filename String * @param tp TuPian * @throws FileNotFoundException * @throws IOException */ public void addTuPian(String filename, TuPian tp) throws FileNotFoundException, IOException, SQLException, HibernateException { byte[] buffer = new ... |
64. one-to-many Oracle Blob IllegalStateException forum.hibernate.orgNewbie Joined: Thu Jan 19, 2006 7:16 pm Posts: 5 Ok, after a bunch of work getting Blobs to work in Oracle (by simply using the Oracle 10 drivers!) I am getting an IllegalStateException. This only occurs when updating a parent object with a set of Children with Blob properties added to a non-empty SortedSet. This exception does not occur when ... |
65. Cannot store Blob with hibernate and Oracle9i forum.hibernate.orgI m receiving an exception while storing a Blob object into the database. I am using the following configuration: Database: Oracle 9i (9.2.0.1.0) Hibernate: 3.1 rc2 App Server: JBoss 4.0.3 SP1 Some Notes: 1) I am using the Thin driver (if I use the OCI driver everything works just fine) but I need to work with the thin driver. 2) ... |
66. get BLOB from Oracle forum.hibernate.orgHi all, Im with problem when a try to get image from Oracle Database. Im using Hibernate 2.1.4, Oracle 9.2.0.1.0. When I try to get the InputStream from BLOB (the object blob contains data here), an error occurs: Code: InputStream is = (InputStream) logo.getImageLogo().getBinaryStream(); But the following occurs: Code: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) ... |
67. creating and using Blobs forum.hibernate.orgHello, can someone provide some basic guidance on how to use hibernate for creating a blob? I have studied the provided examples and documentation bur it is not clear as to how to go about first creating a blob and then populating it. I looked at the tutorial for "Mapping a Blob to a byte[]" on the hibernate website but it ... |
68. problem reading blob forum.hibernate.orgSession session = HibernateUtil.openSession(); session.beginTransaction(); BlastQuery q = (BlastQuery) session.load(BlastQuery.class, new Long(8)); session.getTransaction().commit(); session.beginTransaction(); session.update(q); ... |
69. hibernate3 oracle blob forum.hibernate.orgJust and FYI, I'm using a struts from to upload the file from the client. Mapped my Oracle table (two columns) the primary key and the blob to the hdb.xml file. Created a POJO of the mapped table with getters and setter for the two columns. This is what I have in my struts action class... UploadForm uploadForm = (UploadForm)form; FormFile ... |
70. BLOB images in hibernate and oracle forum.hibernate.org |
71. YABT (yet-another-blob-thread) forum.hibernate.orgOk, here are the big lines. I want to store files in a database. When I work with small files (ex, 5 meg), I got no problem at all. I can save/load them perfectly. However, when I attempt the same thing with a large file (ex, 50 meg, 130 meg), while I can save the file fine, and I know the ... |
72. Blob problem forum.hibernate.org |
73. Major Problem with data type 'BLOB' forum.hibernate.org |
74. How to store Oracle BLOB ? forum.hibernate.orgNewbie Joined: Tue May 17, 2005 8:39 am Posts: 14 hi guys how do you store BLOBs in Oracle ? I have managed to store a CLOB (>4kb) and I thought the same idea (as decribed here http://www.hibernate.org/56.html ) would work with BLOBs, but it doesn't. This code appears to be writing something into the BLOB, but nothing gets written into ... |
75. How Reverse engineer a BLOB column in oracle using hibernate forum.hibernate.org |
76. How to store a file in hibernate using blob forum.hibernate.orgI found the solution. Here i m sharing the code. FileInputStream fis=new FileInputStream(file); byte b[] = new byte[fis.available()]; fis.read(b); java.sql.Blob bb = Hibernate.createBlob(b); TblobForm tblob = new TblobForm(); tblob.setfiledata(bb); tblob.setId(1); fis.close(); session.save(tblob); I have 2 field id and photo id is of type integer filedata is of type blob. And to retrieve from the database: TblobForm form = new TblobForm(); byte ... |
77. Two Blob Column values getting crossed forum.hibernate.orgI've got two blob columns in a table corresponding to two java.sql.Blob properties - basically and original image and its thumbnail. If I save only the original, it properly goes into the "FILE_BLOB" column. However if I save both, the original gets inserted into the THUMB_BLOB column and the thumbnail gets inserted into the FILE_BLOB column. I assumed, as is mostly ... |
78. Merge fail with blob column forum.hibernate.org |
79. if one-to-many, and set has large blobs... forum.hibernate.orgSay I have Parent class and Parent has getChildren, which is mapped using a one-to-many set mapping. If my Children are all very large blob objects and I query to getParent, does this pull down all the children as well? As per my understanding, it would, but I am a major hibernate newbie. And if so, what is the best way ... |
80. Blobs not cacheable issue forum.hibernate.orgI am using mySql database. I need to store both an Image (Blob) and Article(Text) in one table. This table needs to cached as per the project requirement Whenever I try to display a record which needs to display both the article and Image I get the following error "Blobs are not cacheable". I know we cannot cache blob, but can ... |
81. Blobs not cacheable issue forum.hibernate.orgI am using mySql database. I need to store both an Image (Blob) and Article(Text) in one table. This table needs to cached as per the project requirement Whenever I try to display a record which needs to display both the article and Image I get the following error "Blobs are not cacheable". I know we cannot cache blob, but can ... |
82. Hibernate Blob - Data truncation? forum.hibernate.orgI have a Blob stored in one of my entities and when trying to store the entity I get an exception (full stack trace at the end). It appears to be that the type 'blob' is limited to a certain size? The nested error is "Caused by: com.mysql.jdbc.MysqlDataTruncation: Data truncation: Data too long for column 'largeimage' at row 1" What am ... |
83. Using Blobs forum.hibernate.org |
84. Blob returning unreadable text forum.hibernate.orgHibernate version: Hibernate v3.2.5 Name and version of the database you are using: MySQL v5.0.45 Hi Everyone, I'm still fairly new to Hibernate, but I did get everything working. I can use Hibernate to INSERT, SELECT, DELETE and UPDATE records from my database. The only problem I have to when I SELECT data from the BLOB type column, I get unreadable ... |
85. Oracle Blob Help forum.hibernate.orgOk I have spent the last several hours reading and trying everything to get reading a blob from oracle to work. Currently, I am getting the Connection Closed exception. My current config is: Hibernate 3.2.5 RDBMS: Oracle, version: Oracle9i Enterprise Edition Release 9.2.0.8.0 JDBC driver: Oracle JDBC driver, version: 11.1.0.6.0-Production+ dialect: org.hibernate.dialect.Oracle10gDialect Now, I have used different combinations of between different ... |
86. retrieving blob images from databse to jsp forum.hibernate.orgI've done quite a bit of work with image storage, retrieval and basic manipulation (rescaling, thumbnailing etc) using Hibernate. So if you have any specific questions please ask (see email address below). The main problem I encountered was memory leaks: and not all those issues are resolved to my satisfaction yet: I had to bypass the usual Hibernate mechanism for image ... |
87. problem with Blob, Hibernate3 and Oracle 10g forum.hibernate.orghello on a oracle 10g database a defined a table as follows: create table contact( id number(22) primary key not null, attachment blob, attachmentname varchar2(255)) tablespace users storage (initial 2M pctincrease 0) lob (attachment) store AS ( tablespace users storage (initial 10M) enable storage in row pctversion 5 chunk 1 index lob_attachment_idx (tablespace users storage (initial 1M))); tying to fill this ... |
88. Problem with storing CipherInputStream using Blob forum.hibernate.orgWe are using Hibernate 3.2.4, Jboss 4.0.4 GA, Oracle 10g, EJB 3 We are trying to store Blob into the database - but not all bytes are stored. The blob is created out of an CipherInputStream (the stream is passed to a local method of an EJB). The CipherInputStream is created (in the Web Teir) out of FileInputStream and Cipher objects. ... |
89. Blobs, file upload, and preprocessing file in mid stream forum.hibernate.org |
90. How to read/write Blob images using Hibernate forum.hibernate.orgHi guys, I have a web application where I'm trying to store and retrieve user JPEG images in a MySQL database. I'm using Spring and Hibernate3, but I don't know how to handle blob or binary datatypes. I would I appreciate it if someone that show my how to configure my hibernate.cfg.xml and how to convert the byte data I get ... |
91. BLOB Streaming. forum.hibernate.orgIf you map your property as a BLOB (not byte[]) then you can actually use the BLOB stream API directly. You'll have to use this API within a transaction, but it should do what you want. On the way back out, the BLOB data won't be read until you actually get the bytes out of it, and again you have to ... |
92. Forcing bytea for Blobs in Postresql forum.hibernate.orgHello, I'm writing a JEE application and I'm planning to support Glassfish and JBoss in their default configurations, so I need to support Toplink and Hibernate. I know that I can use Hibernate with Glassfish but I'd like my code to work in more than one JPA implementation, so using Hibernate in Glassfish would be a Plan B. I have a ... |
93. Forcing bytea for Blobs in Postresql forum.hibernate.orgHello, I'm writing a JEE application and I'm planning to support Glassfish and JBoss in their default configurations, so I need to support Toplink and Hibernate. I know that I can use Hibernate with Glassfish but I'd like my code to work in more than one JPA implementation, so using Hibernate in Glassfish would be a Plan B. I have a ... |
94. Oracle IOException when working with Blobs over 1MB forum.hibernate.orgAuthor Message cmack13 Post subject: Oracle IOException when working with Blobs over 1MB Posted: Mon Dec 15, 2008 12:31 pm Newbie Joined: Mon Dec 15, 2008 10:45 am Posts: 2 I am trying to insert images selected by a user from an applet. I can insert images over 100K without any issue. When I select an image from the ... |
95. Potential Memory Leak from Hibernate blob forum.hibernate.orgHi, Iam using the Jboss EAP 4.3 Hibernate jars which are versioned 3.0 . I have an transaction which slowly runs out of the memory when run over a long period of time. In this app am persisting an Hibernate object to the database . The hiberante object contains a blob . Am suspecting this could be the leak . Profiling ... |
96. store pdf in oracle BLOB hibernate forums.oracle.comSamples? Are you asking how to make a blob? I have my doubts about the wisdom of using Hibernate if you can't diagnose a NPE unless that was just momentary code snow-blindness, but whatever, it's your problem: Either call Hibernate.createBlob(InputStream,long) or just map the field as a byte[] and map it to a Blob type. Edited by: dcminter on 09-Jun-2008 22:22 ... |