Web Servers on Unix and Linux - File upload

This is Interesting: Free IT Magazines  
Home > Archive > Web Servers on Unix and Linux > March 2004 > File upload





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author File upload
SM

2004-03-18, 2:05 pm

I am using Apache 2.0.43 web server and Weblogic 7.0.2 application
server. I have a JSP page that uses multipart/form-data request to
send a file to a server. On the server side is a Java program that
parses the servlet stream and writes the file out to the filesystem.

The problem is that ASCII/text files are being received correctly, but
binary files (I have tried MS Word docs and Image files) are being
corrupted. The interesting thing is that the binary file that is
received (and stored on the server) is exactly the same size as the
file that was sent/uploaded from the client - only the data seems to
be incorrect !

Is it possible that either Apache or Weblogic is somehow "translating"
the bytes?

Any ideas/help will be appreciated.
Nick Kew

2004-03-18, 2:05 pm

In article <e841c4c9.0403151617.6469fe8d@posting.google.com>,
satish.mokkapati@ams.com (SM) writes:

> The problem is that ASCII/text files are being received correctly, but
> binary files (I have tried MS Word docs and Image files) are being
> corrupted. The interesting thing is that the binary file that is
> received (and stored on the server) is exactly the same size as the
> file that was sent/uploaded from the client - only the data seems to
> be incorrect !


So how do you know the data are incorrect? You've run an MD5
both on the client and the server?

If you're sure of that, you'll want to fix your JSP. Or tell
us what software you are running that might be relevant -
such as nonstandard modules in apache.

--
Nick Kew
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com