M
muriwai
Hi,
I manually stream out a file in chunks from my web form using PageAsyncTask,
Page.Response.OutputStream.BeginWrite and Flush after each chunk. I do set
the Content-Length header. If an error occurs (for example, a timeout), I do
the following:
response.OutputStream.Close();
response.Flush();
response.Close();
The trouble is, IE says that the download has completed successfully in
spite of the downloded file being incomplete. How can I force IE to display
an error (eg, Connection Was Reset) and abort the download?
Thanks!
--
I manually stream out a file in chunks from my web form using PageAsyncTask,
Page.Response.OutputStream.BeginWrite and Flush after each chunk. I do set
the Content-Length header. If an error occurs (for example, a timeout), I do
the following:
response.OutputStream.Close();
response.Flush();
response.Close();
The trouble is, IE says that the download has completed successfully in
spite of the downloded file being incomplete. How can I force IE to display
an error (eg, Connection Was Reset) and abort the download?
Thanks!
--