I have a problem in my program,I have a table that contain an Imagefield(type of this field is image),but I can't read it in program,Iuse hibernate2 and struts.
u can map that field in hibernate as binary. the corresponding java object field should be byte[].put this in sessionFactory as well :
<configuration-property> <property-name>hibernate.jdbc.use_streams_for_binary</property-name> <property-value>true</property-value> </configuration-property>