Hi the poblem you have with such files is becuse the Stream you are
working in is not constant i mean .. have you seen the stream ? that comes
with the fileupload??
its somethin like this ..
--------------84534573894573945739458 <-this number allways changes
Content-Disposition: form-data; name="your variable in the form"

Value of the variable submited..
--------------84534573894573945739458

ando so onfor each variable ..
the number is called boundary ..
theproblem is that the stram is not constan i mean i could stop at any
moment so when you try to get a line it could come cutted so you have to
make a second getLine until you could complete the line . with the \r\n

is a complete mess to get a file so be carefull with the boundary and the
getLine method and allways try to find if the line is complete ..


also take care of the type of files you are using .. text files should
have a special treatment .. since MSDOS uses \n\r and unix uses only one
of those ..
hte problem is not with the Enterprise Server 3.5.1  the problem is
eventually with your network . try more than one time to upload the
archive and you will realize that the problem is sincronizacion in the
data transmision but that unfortunatelly is not because the server it's
because the comnnection ..
9i have tried  the file upload in enterpirse server on UNIX and on nt they
havethe same similar problems ..







                                        Mario Rendon Aldaraca



On Tue, 20 Apr 1999, Carlos R. wrote:

> Hello
>
>  I'm in problems. I'm trying to run a file-upload servlet in a Netscape
> Enterprise server 3.5.1.
> I've probed with the FileUploadServlet that comes with Java web server,
> and with com.oreilly.servlet package but always there are some files
> that
> fail.
>
> I've installed Jrun and the problem persists.
>
> I've some servlets runs, and I think that the problem comes with the
> enctype="multipart/form-data" .

this kind opens a stream of thata but data not comes to the server at the
same speed than you request it in your servlet .. .. that's the problem ..

>
> I'm very lose, if somebody has a file-upload servlet runs in Enterprise
> server or somebody knows why can it fail, I'll please you.
>
> Thanks in advance
>
> ERICSSON
> Carlos R.
>  Ericsson Data Spain
>
> ___________________________________________________________________________
> 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
>

___________________________________________________________________________
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

Reply via email to