How many bytes to download / estimated time left

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I build some web aplication that needs to return some binary data using Response.BinaryWrite(byte[] data)
All is fine, but one thing: the browser does not display "estimated time left" and the size of the binary to be returned. All is right, but the user does not know how big the file will be, nor he nows how long he is going to wait. (All he knows is how many bytes he has downloaded already)

What should I do to allow the browser display this infrmation to the user ?

Thanks
Michal Januszczyk
 
you tell the browser the content length in the response header
Content-Length.

-- bruce (sqlwork.com)


Michal Januszczyk said:
I build some web aplication that needs to return some binary data using
Response.BinaryWrite(byte[] data)
All is fine, but one thing: the browser does not display "estimated time
left" and the size of the binary to be returned. All is right, but the user
does not know how big the file will be, nor he nows how long he is going to
wait. (All he knows is how many bytes he has downloaded already)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top