why do you need a servlet wrapper for binary files? if you need to do pre/post-processing, use a filter and let tomcat server the file. This way you don't have to try to implement the http spec in your servlet.
You will run into problems when a download manager requests 10 pieces(via http resume) of your file at once and you will end up serving the whole file 10 times if you have not handled 'resume' correctly. A filter resolved this for me. Charlie > -----Original Message----- > From: Vy Ho [mailto:[EMAIL PROTECTED]] > Sent: Monday, December 02, 2002 12:46 PM > To: Tomcat Users List > Subject: Re: Problem downloading binary files, please help. > > > > > > I got a very weird error and here is the situation: > > > > The app I used: tomcat 4.06, phoenix web browser 0.3, ie6.0 > > > > Here is the problem: > > > > When I set up an application in tomcat (with BASIC AUTHEN), > phoenix could > > download all binary files (.exe, .pdf, etc...) fine from > Tomcat server. > > Then I tested with IE6.0, and I got error (server could not > find the file > > or something). However, IE6.0 could download text file ok > without any > > problem. Ok, so I came back and delete the file index.html in the > > application, and I can download the file fine. Isn't this strange? > > > > But that's not all yet. I want to serve files using a > servlet wraper. > > Basically send back the binary with the right content type. > > Mozilla/phoenix can download without any problem. But > IE6.0 complain with > > the same error before. So, somehow the index.html file and > the servlet > > have something in common that make IE not working while it > works without > > the index.html and statically. > > > > Well, want another strange thing? I could not find anyone > complain about > > this, or even ask any question about this in newsgroup or > apache site. > > And I can produce consistently using different machine. > > > > Anyone have any idea? Is it Apache Tomcat or IE error? Or > both? Or it's > > me? > > > > I am sure Tomcat can be changed to work, since statically > served page > > works. And I am sure IE can be changed to work, since > Mozilla works all > > the time. > > > > Actually, I found any article in the newsgroup on Google > with a similar > > error, but very different situation (IIS server). And the > problem is in > > the expiration of a page. If some page has instant > expiration, then IE6 > > has problem getting it. It could be the same problem. > Coudl someone help > > me out here since IE has 95% of the market share? > > > > Thank you very much in advance. > > > > Vy > > > > > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > > -- > > To unsubscribe, e-mail: > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > <mailto:[EMAIL PROTECTED]> > > > > > > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
