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 Kalyan Enganti <ka...@gmail.com> on 2013/01/22 03:52:01 UTC
Write multiple files to outputstream without closing the stream
Hi
I am using Http-Core on android .I would like to give the users an option to download multiple files/folders simultaneously.Currently I am able to provide individual files as downloads, and folders as zip content.I am using sockets based http server modelled on the ElementalHttpServer example on the HttpComponents site.I would like to know if there is any way to do this in my voidhandle() method ,using any of the entities without closing the outputstream. Any pointers in the right direction would be greatly appreciated.
Thanks and Regards
Kalyan
Re: Write multiple files to outputstream without closing the stream
Posted by Oleg Kalnichevski <ol...@apache.org>.
On Mon, 2013-01-21 at 21:00 -0600, Stephen J. Butler wrote:
> MIME multipart response? Googling suggests browser support for such a thing
> is hit or miss:
>
> https://www.google.com/search?q=http+multipart+response
>
Indeed, MIME multipart messages would probably the most natural choice.
Have a look at Apache Mime4j. It should give you both MIME parser and
MIME writer needed to be able to generate MIME messages on the client
side and parse them on the server side.
http://james.apache.org/mime4j/index.html
Oleg
>
> On Mon, Jan 21, 2013 at 8:52 PM, Kalyan Enganti <ka...@gmail.com>wrote:
>
> > Hi
> > I am using Http-Core on android .I would like to give the users an option
> > to download multiple files/folders simultaneously.Currently I am able to
> > provide individual files as downloads, and folders as zip content.I am
> > using sockets based http server modelled on the ElementalHttpServer example
> > on the HttpComponents site.I would like to know if there is any way to do
> > this in my voidhandle() method ,using any of the entities without closing
> > the outputstream. Any pointers in the right direction would be greatly
> > appreciated.
> >
> > Thanks and Regards
> > Kalyan
---------------------------------------------------------------------
To unsubscribe, e-mail: httpclient-users-unsubscribe@hc.apache.org
For additional commands, e-mail: httpclient-users-help@hc.apache.org
Re: Write multiple files to outputstream without closing the stream
Posted by "Stephen J. Butler" <st...@gmail.com>.
MIME multipart response? Googling suggests browser support for such a thing
is hit or miss:
https://www.google.com/search?q=http+multipart+response
On Mon, Jan 21, 2013 at 8:52 PM, Kalyan Enganti <ka...@gmail.com>wrote:
> Hi
> I am using Http-Core on android .I would like to give the users an option
> to download multiple files/folders simultaneously.Currently I am able to
> provide individual files as downloads, and folders as zip content.I am
> using sockets based http server modelled on the ElementalHttpServer example
> on the HttpComponents site.I would like to know if there is any way to do
> this in my voidhandle() method ,using any of the entities without closing
> the outputstream. Any pointers in the right direction would be greatly
> appreciated.
>
> Thanks and Regards
> Kalyan