Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp
Hibernate version:
3.2.0
Name and version of the database you are using:
HSQLDB
Hello,
There is a small issue I can't seem to be able to solve... In very few words I have to save an image to the database...
I have tried this solution:
http://www.hibernate.org/73.html but it doesn't work... first of all HSQLDB doesn't have BLOB as a data type.. so I tried using BINARY but that doesn't work either... it actually saves all the data from the entity but not the image... even dough the data is sent to the nullSafeSet method properly... I changed
return new int[] { Types.BLOB };
to
return new int[] { Types.BINARY };
and replaced
st.setBlob(index, Hibernate.createBlob((byte[]) value));
with
st.setBinaryStream....
but still nothing... I will post the whole class with the modifications I made tomorow...
any ideas ? anybody... ???????
Thank You