You are viewing a plain text version of this content. The canonical link for it is here.
Posted to httpclient-users@hc.apache.org by Michael m <mm...@gmail.com> on 2013/09/06 12:54:21 UTC
how to send large raw data
Hi,
I am using the string entity and post data to send large xml file as string
to server and this is taking a long time. How can I reduce the time to post
large files?
Regards.
Mike
Re: how to send large raw data
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, 2013-09-06 at 18:46 +0530, Michael m wrote:
> Thanks for the response. I am not sure if I can use file entity because I
> am supposed to send raw data as a payload and not as a file.
> Can you provide a sample for the custom entity implementation please.
>
http://hc.apache.org/httpcomponents-core-4.2.x/httpcore/xref/org/apache/http/entity/FileEntity.html
Oleg
>
> On Fri, Sep 6, 2013 at 5:45 PM, Oleg Kalnichevski <ol...@apache.org> wrote:
>
> > On Fri, 2013-09-06 at 16:24 +0530, Michael m wrote:
> > > Hi,
> > >
> > > I am using the string entity and post data to send large xml file as
> > string
> > > to server and this is taking a long time. How can I reduce the time to
> > post
> > > large files?
> > >
> > > Regards.
> > > Mike
> >
> > Use file based entity (FileEntity) or develop a custom HttpEntity
> > implementation that can stream content out directly to the specified
> > output stream.
> >
> > Oleg
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> > For additional commands, e-mail: httpclient-users-help@hc.apache.org
> >
> >
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: how to send large raw data
Posted by Michael m <mm...@gmail.com>.
Thanks for the response. I am not sure if I can use file entity because I
am supposed to send raw data as a payload and not as a file.
Can you provide a sample for the custom entity implementation please.
On Fri, Sep 6, 2013 at 5:45 PM, Oleg Kalnichevski <ol...@apache.org> wrote:
> On Fri, 2013-09-06 at 16:24 +0530, Michael m wrote:
> > Hi,
> >
> > I am using the string entity and post data to send large xml file as
> string
> > to server and this is taking a long time. How can I reduce the time to
> post
> > large files?
> >
> > Regards.
> > Mike
>
> Use file based entity (FileEntity) or develop a custom HttpEntity
> implementation that can stream content out directly to the specified
> output stream.
>
> Oleg
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
> For additional commands, e-mail: httpclient-users-help@hc.apache.org
>
>
Re: how to send large raw data
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Fri, 2013-09-06 at 16:24 +0530, Michael m wrote:
> Hi,
>
> I am using the string entity and post data to send large xml file as string
> to server and this is taking a long time. How can I reduce the time to post
> large files?
>
> Regards.
> Mike
Use file based entity (FileEntity) or develop a custom HttpEntity
implementation that can stream content out directly to the specified
output stream.
Oleg
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org