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.
parse your inputstream with multipart header.
do some google u will get cooked food.
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 platform...is 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.
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.
I haven't used it myself, but Apache Jakarta Commons FileUpload
Use getOutputStraem() method of URL Connection ,
, store filedata to a string & write String toServlet using ObjectOutputStream