0 Replies Latest reply on Sep 1, 2004 12:10 AM by Harshinie Dayaratne

    BLOB in Jboss

    Harshinie Dayaratne Newbie


      In my application i need to write data in to a blob field via a entity bean.

      i define the ejbCreat method as follows
      ejbCreate(String msgId,String toAddress,String fromAddress,String returnAdd,String cc,String bcc,String subject,byte[] body,String attachment,String status )

      but when i deploy that the body field which i define as blob shows as a varchar field in the database.

      also when i call the create method it thorows ejbcreat exception.

      i am using xdoclet and mysql 3.23.52 .

      could u pls tell me how shall i declare a blob field.

      how shall i write data to that.

      pls help me

      thanks in advance