On May 29, 3:59 am, juantar <[email protected]> wrote:
> I am getting aSTREAMEDerror when trying to read the InputStream from
> a POSTed HttpServletRequest. It worked perfectly in 1.3, but it is not
> working in 1.5. The following is the code:
>
> public void doPost(HttpServletRequest request, HttpServletResponse
> response)
>                         throws IOException {
>                 String posted_data = "";
>                 //read all the contents of the posted data into a string
>                 final char[] buffer = new char[0x10000];
>                 StringBuilder posted_data_builder = new StringBuilder();
>                 BufferedReader in=request.getReader();
>
>                 int d;
>             while((d=in.read()) != -1){
>                 posted_data_builder.append((char)d);
>             }
>
>                 posted_data = posted_data_builder.toString();
>
> }
>
> Am I doing something wrong, or is this a bug?
>
> Thank you

I've got the same problem, after upgrading from 1.4.3 to 1.5.0 (and
then 1.5.1). No code change between upgrades. Did you find a solution
for this?

I've tried both using request.getReader() and request.getInputStream,
neither of which will work.

Regards,
Markus

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine-java?hl=en.

Reply via email to