Swing/EJB/ File uploading..


EJB design: Swing/EJB/ File uploading..

  1. Swing/EJB/ File uploading.. (1 messages)

    Hi there,
       If EJB 2.0 doesn't supports File I/O, then how can we upload a file to oracle database through BMP bean and Swing Client..explaination please!!!
    Thanks and Regards
  2. Swing/EJB/ File uploading..[ Go to top ]

    You cannot do the IO operations from EJB, but you can load the file at Swing client and then send the data to the server (for example as an array of bytes). The Swing application will operate on files and server-side application will use the database. In EJB's you may be forced to create some streams, but they should not be connected to any files.