Hi all,
i have looked a little further into the problem my co-worker is
having:
the problem seems to be the following:
we use something like:
1 Session session = hbds.getSessionFactory().openSession();
2 session.beginTransaction();
3 Query query = session.createQuery(querystring);
4 session.getTransaction().commit();
5 List<?> results = query.list();
6 session.flush();
7 session.disconnect();
8 Object oneResult = results.get(0);
And oneResult is a single Blob (the real scenario is a little more
complicated, but this should show our issue) to be more precise it is
a JdbcBlob containing a ValueLobDb value. We now try to use the Blobs
content (image data) but the ValueLobDb deleted its tempfile (in
query.list() in line 5) and thus when trying to access the actual Blob
data we want, the tempfile is gone and as blob.getBinaryStream() tries
to access it, the (somewhat misleading) error ("File corrupted...") is
thrown because of the missing file. Any idea, what to do here?
gr
mf