2 Replies Latest reply on Dec 12, 2002 10:12 AM by sgturner

    Upload an image with EJB??

    d97adka

      Hi,
      I have one task that I don't know how to do?
      I need to upload an image from JBoss client (Windows application written in java) to the specific folder on the server where jboss resides.
      My client works with EJBs on the server.
      How can I do it. What is best practise?
      My idea is maybe to write an servlet and upload image from my client to servlet that then saves image since servlet is on same machine as EJBs.
      Is there any way that I can do this without servlet but just from my client to the EJBs that somehow save image.
      Any suggestions?
      If you can explain it to me step by step or even better if you have some sample code.

      regards
      Adis

        • 1. Re: Upload an image with EJB??

          It isn't recommended for EJBs to access the file
          system. It is a potentially blocking operation
          outside the control of the AppServer.

          You'll find you can actually do it.

          Regards,
          Adrian

          • 2. Re: Upload an image with EJB??
            sgturner

            Since FTP is the standard way to move files around on the net, I would seek out an open source implementation of FTP, and build client side into your client app and build an MBean around the server side FTP