ejb@glassfish.java.net

Re: Storing Binary Data

From: Sanjeeb Kumar Sahoo <Sanjeeb.Sahoo_at_Sun.COM>
Date: Mon, 21 Aug 2006 22:22:00 +0530

You can use *byte[]* as Java field type and annotate it as
@javax.persistence.Lob.

Sahoo
Soe Moe Kyaw @ Stephen Wang wrote:
> Hi, all,
>
> I want to store binary data (such as photo and documents) using Entity
> Beans and which datatype do I have to use for that field.
>
> --
> Regards;
> Soe Moe Kyaw @ Stephen Wang