Odi, Just to clear things up.
1. Upload file to a servlet and store in the server. (no problem at all) 2. Download the file through a servlet as well with parameter to get specific file. The thing is I don't know how the server store it and I don't have access to check it. It all works well if I'm downloading using browsers. i guess the browser can encode the contenttype. Damien, When u're using getResponseBodyAsStream() method, do u get something like: --10585088040931058508804093 Content-type: application/octet-stream Content-disposition: attachment;filename=1.txt in the beginning of ur file ? They are not part of the headers. i tried to print the headers and it's not that. Mike, The uploding file works fine. I am having problem downloading the file using PostMethod Thank you all.... quent --------------------------------- Do you Yahoo!? SBC Yahoo! DSL - Now only $29.95 per month!
