Posting file to servlet


EJB design: Posting file to servlet

  1. Posting file to servlet (5 messages)

    I have a backend system which need to send a file to my application.

    I have to write a servlet deployed in my application. The Backend system will post the file ( .doc or .xml or .xls ) to the servlet running on my app.

    This is what I need to develop.
    Can anyone help me out.

    I need to know how the Backend system will post the file to my servlet?
    And how my servlet's doPost method will handle that and get the file...?

    Any help is highly appreciated.

  2. parse your inputstream with multipart header.
    do some google u will get cooked food.
  3. posting a file to servlet[ Go to top ]

    Thanks Biswa

    I did some google.. but everywhere I am getting link to this package only...


    I dunno if I can download and use this package in my project...I use weblogic workshop there any similar thing that comes with Weblogic platform...
    or any way to do it other than using this oreilly package classes... I am a bit confused about this as I dont basically understand what needs to be done

    can somebody help me out.
  4. If you are not using struts[ Go to top ]

    com.oreilly.servlet.multipart is free to use and I assume after struts it is the highest used library for attachment processing.
    Any way this is not rocket science if you understand how to process multipart messages.
  5. posting a file to servlet[ Go to top ]

    I haven't used it myself, but Apache Jakarta Commons FileUpload should work.
  6. Use getOutputStraem() method of URL Connection ,
    , store filedata to a string & write String toServlet using ObjectOutputStream