Papaya Head wrote:
>
> hi,
>
> a while back in this mailing list, some guru pointed out that the serialized
> String has a size limit of 64K.
>
> I am wondering if there is any size limit for the return value from
> getParameter to get the posted data from browser, because the return type of
> this method is String...
Speculation:
Probably not, because the string (notice lower case 's') that is sent by the
browser is not a Java String, it is simply a stream of bytes sent by the browser
to the server. I also base this speculation on the fact that browsers can pass
arbitrarily large files up to a server (web sites like ecircles.com and
myfamily.com allow one to upload jpg files).
Two things to keep in mind:
-The larger your string, the longer the user has to wait for the request to get
sent to the server.
-Eventually that string gets stored as a String object by the servlet, and now
you're back to the potential limitations of the String class.
K Mukhar
___________________________________________________________________________
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