Re: Returning a response of unknown length using WOResponse.setContentStream()
Re: Returning a response of unknown length using WOResponse.setContentStream()
- Subject: Re: Returning a response of unknown length using WOResponse.setContentStream()
- From: Paul Hoadley <email@hidden>
- Date: Sat, 30 Mar 2019 14:26:19 +1030
Hi Hugi,
On 30 Mar 2019, at 2:23 am, Hugi Thordarson <email@hidden> wrote:
> I can't offer any help at all,
I was counting on you!
> besides telling you that I fought the same issue a while back and ended up
> defeated, writing the Zip file to a temp file and returning that to the
> client.
That's what I went with in the end, and it works fine, and I know the appserver
has the resources at the moment. Would have been nice to do this the right way
though.
> However, if you do choose to pursue this perilous path, the statement
> "WOHttpIO._alwaysAppendContentLength = false;" might be a tiny bit helpful.
> But who knows what else *that* might flonk up.
>
> If you figure this out, I'd love to hear about it.
Markus Stoll pointed me in the direction of WOHttpIO as well. I will take a
look at some point. For now the product has shipped with the temp file
solution, but I will add this to my list of things to look at when time
permits. (Along with, for example, "Look at framework resources issue", which I
seem to recall was some Maven-related edge case you and I were talking about
around 78 years ago. Not even sure what it means any more, but it's on that
to-do list.)
--
Paul Hoadley
https://logicsquad.net/
https://www.linkedin.com/company/logic-squad/
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden