RE: How to cancel download on the server side

2016-06-15 Thread Bill Miller
Do you have the ability to have multiple client-server connections open? You could have a second channel to the server that can communicate the status to the client and when/if there is a problem indicate through that status channel that the download has been truncated. Not the greatest idea bec

Re: How to cancel download on the server side

2016-06-03 Thread Olaf Kock
Am 03.06.2016 um 15:51 schrieb Steffen Heil (Mailinglisten): > NO. We want to stream the results to the client... It usually is > several times bigger than the memory at hand. I can think of three options right now: * Know the content-length upfront (which you don't) - with that clients could det

RE: How to cancel download on the server side

2016-05-30 Thread Sebastian Trost
Hi, We had a similar problem. We just added a "preparation" step before the actual download. 1. User clicks on "request download" link 2. jQuery sends a request to servlet and instructs it to prepare the download 3. Meanwhile the request download link has been changed with Javascript to "pre

Re: How to cancel download on the server side

2016-05-29 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 Steffen, On 5/29/16 2:08 PM, Steffen Heil (Mailinglisten) wrote: > I am streaming a huge file from a servlet to the browser. It can > easily be multiple gigabytes. > > Currently the data is prepared on the server, stored in a file and > then sent t