Bina Keshava wrote:
>
> I am using Jason's class . But trying to upload a binary file results
> it an error. I believe there is a bug in the NetScape enterprise server.
>
> Just wanted to know if anybody has come across this problem and has
> a solution for this.
>
> At my end I am also trying to find a solurtion.
Most likely this is caused by a bug in the Servlet 1.0 and 2.0
implementations of ServletInputStream.readLine, used by Jason's
MultiPartRequest as far as I can recall (fixed in Servlet 2.1).
If you use NES 3.x native servlet support, you're using the buggy
Servlet 1.0 implementation. If so I suggest you use a servlet add-on
container instead, like ServletExec (New Atlanta), JRun (Allaire),
WAICoolRunner (Gefion software), or WebSphere (IBM), that implements
Servlet 2.1.
Another alternative is to look for an upload servlet that doesn't use
ServletInputStream.readLine, such as the one included in our
InstantOnline Basic package (see http://www.gefionsoftware.com)
Using ServletInputStream.read(byte b[], int off, int len) is both
much faster and avoids the problem with the bug in readLine.
--
Hans Bergsten [EMAIL PROTECTED]
Gefion Software http://www.gefionsoftware.com
___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".
Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html