Hi Jason,

I have a binary file to read as output of servlet.
This file can be any MIME type.
What should be the code to do this.
Help appreciated.
(I couldn't find that in your book.)
--- Jason Hunter <[EMAIL PROTECTED]> wrote:
> > sachin zingade wrote:
> > I am using Apache with JRUN i want to upload the
> file through servlet,
> > when i send the small file it gets uploaded
> correctly but when a big
> > file of 3 Mb is tried the following error occurs,
> this is for java web
> > server,
> >
> > 500 Internal Server Error
> > The servlet named sunexamples.SimpleServlet at the
> requested URL
> >
> >
>
http://localhost:8080/servlet/sunexamples.SimpleServlet
> > reported this exception: Posted content length of
> 2349722 exceeds
> > limit of 1048576.
>
> Just as the error message says, your POST size was
> longer than the
> MultipartRequest class was configured to accept.
> Notice the
> constructor takes a "maxPostSize" parameter.
> Increase that to allow
> larger uploads.  This is well explained both in my
> book and in the
> Javadocs for the class.  You should make sure to
> read both.
>
> -jh-
>
> P.S.  Your mail client thinks it's 2001.
>
>
___________________________________________________________________________
> 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
>
__________________________________________________
Do You Yahoo!?
Talk to your friends online with Yahoo! Messenger.
http://im.yahoo.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

Reply via email to