This content has been marked as final.
Show 1 reply
-
1. Re: Store pdf files in the database
lafr Dec 28, 2006 1:33 PM (in response to sigitm)We have an antity storing an excel file in database. The field is declared as following:
/**
* @ejb.interface-method
* @ejb.persistence
* column-name="losgr_attachment"
* sql-type="BYTE"
* jdbc-type="LONGVARBINARY"
* @return Returns the losgrAttachment.
*/
public abstract java.lang.Object getLosgrAttachment();
/**
* @ejb.interface-method
* @param losgrAttachment The losgrAttachment to set.
*/
public abstract void setLosgrAttachment( final java.lang.Object losgrAttachment );
The database field is of type byte (Informix DB) or blob (Oracle 9i).
The parameter given to the setter is of type byte[].