Hi Amit
Assuming that your "dispatcher" is a servlet, it will correctly receive text
parameters without problems. However the servlets API doesn't support
multipart request data. You need to work around this in your code.
For example, if your client opens a connection - you then need to stream the
file over the connection. Then on the server side your servlet then
receives the connection and you call the request.getInputStream() to get
access to the streaming data - ie your file.
Alternatively if the client sends the equivalent of a multipart request,
including a file you then need to adapt the servlet to read this type of
data. I would suggest the easiest tool for this (IMHO) is
com.oreilly.servlet.MultipartRequest. This link gives you an easy to follow
example for using this:
http://javajunkies.org/index.pl?lastnode_id=717&node_id=1187
Hope this helps,
Andrew
Professional Java Servlets 2.3
http://www.amazon.com/exec/obidos/ASIN/186100561X
http://www.amazon.co.uk/exec/obidos/ASIN/186100561X