File upload
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Web Servers on Unix and Linux > File upload




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    File upload  
SM


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-18-04 07: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.





[ Post a follow-up to this message ]



    Re: File upload  
Nick Kew


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
03-18-04 07: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





[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 12:40 PM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register