0 Replies Latest reply on Dec 20, 2001 4:53 PM by Tom Bruser

    Retrieving an InputStream rather than a byte[] for long bina

    Tom Bruser Newbie

      I have an EJB application in which there is a function to be developed that allows users to upload files to my server via a servlet. I want to avoid using the file system to store these files and would rather store them in my database, preferably keeping within my EJB model.

      My question: Is it possible to create a CMP EJB with which I can read my data in sequentially from the database (e.g. InputStream) rather than having one large byte[] dumped into my server's RAM? If not, what are my other options?