ASP Request Object : TotalBytes Property

The TotalBytes property holds the total number of bytes sent by the client to the server in the body of the HTTP request. The TotalBytes property is read-only.

Example:

<%
  Dim count
  count = Request.TotalBytes
%>
count now holds the number of bytes sent in the request. This number can be used in conjunction with Request.BinaryRead to obtain the actual byte contents of the request. In fact, using it with the BinaryRead method is about the only use this property has, since ASP has built in objects to manipulate the contents of the request. In combination with BinaryRead, however, this property can be used to do cool things like upload binary files (images, etc.) from a client to the server.


Back to the ASP Request Object
Back to ASP Objects
Resources:
http://www.devguru.com/
http://msdn.microsoft.com/asp/

All code is my own (i swear)

Log in or register to write something here or to contact authors.