Hi,

I have a CMP Entity Bean which has a field to store a
binary file. I have written the following lines to
create it:

/**
   * @ejb:interface-method
   * @ejb:persistent-field 
   * @ejb:transaction type="Required"  
   * 
   * @jboss:jdbc-type="LONGVARBINARY"
   * @jboss:sql-type="LONGRAW"
   */
  public abstract byte[] getFileData();

  /**
   * @ejb:interface-method
   * @ejb:transaction type="Required"
   */
  public abstract void setFileData(byte[] fileData);

I tried to save something and I get no error, but when
I read that field from the database I don't get as
many bytes as the original file has.

Am I doing anything wrong ?

Thanks !
Mike

__________________________________________________
Do you Yahoo!?
Yahoo! Tax Center - forms, calculators, tips, more
http://taxes.yahoo.com/


-------------------------------------------------------
This SF.net email is sponsored by: SlickEdit Inc. Develop an edge.
The most comprehensive and flexible code editor you can use.
Code faster. C/C++, C#, Java, HTML, XML, many more. FREE 30-Day Trial.
www.slickedit.com/sourceforge
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to