Greetings,

Having some trouble with transferring a file to another server.

Here's the flow:
User submits excel doc to ServerA
ServerA get post, creates MultipartPost and posts to ServerB.
ServerB saves the file received, but when opened the encoding is all wrong.
The data is there but "No Alderan"

Submitting the file directly to ServerA or ServerB is fine.  The file can be
read by excel.  From what I can tell,
I'm doing something incorrectly with creation of the MultipartPost before
transmission to the other server.
Here's some code of what I'm doing:

MultipartPostMethod method = new MultipartPostMethod(buildURL(getPath()));
method.setFollowRedirects(false);
...
...
MultiPartRequestWrapper request =
ServletActionContext.getMultiPartRequest();
fileForUpload = request.getFile(FILENAME_FIELD);
FilePart p = new FilePart(fileForUpload.getName(), fileForUpload,null,
null);
p.setTransferEncoding(null);
method.addPart(p);

ServerA is IIS:Tomcat 4.1.29
SeverB is WebLogic8.1
jdk 1.4.1


Thanks,
eric.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to