hc-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rajani Karuturi <rajanikarut...@gmail.com>
Subject Re: httpcomponents nio server usage
Date Mon, 19 Jan 2015 14:00:56 GMT
Thanks oleg. Will try and get back.

-
Rajani.

On Mon, Jan 19, 2015 at 2:47 PM, Oleg Kalnichevski <olegk@apache.org> wrote:

> On Sat, 2015-01-17 at 05:08 +0530, Rajani Karuturi wrote:
> > Hi all,
> > I am trying to use httpcomponents nio server to handle post request file
> > uploader.
> >
> > I am facing two issues:
> > 1. how to parse the request?
> > I could get the entire data including parameters and file content
> separated
> > by boundary. Is there a default parser available so that I could do
> > request.getParameter("param1"), request.getFile() etc.
> > Stackoverflow question with sample code:
> > http://stackoverflow.com/q/27994401/201514
> >
> > 2. How to read the data in chunks?
> > I couldnt figure out a way to read the data in chunks.
> > HttpEntity.getContent().read is always returning me null. Whereas,
> > EntityUtils.toByteArray(entity) is giving the complete data.
> > stackoverflow question with sample code:
> > http://stackoverflow.com/q/27994359/201514
> >
> > looking for any help/suggestions in solving these.
> >
> > Thanks in advance.
> >
> > -
> > Rajani
> >
>
> Rajani
>
> Please see my responses on Stackoverflow.
>
> Oleg
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@hc.apache.org
> For additional commands, e-mail: dev-help@hc.apache.org
>
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message