Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











PROPERTY:  Stream::Size

Implemented in version 2.5

long = streamobject.Size

The Size property returns a long value that is the size in bytes of the data stored in the Stream object.

Note that this property requires that the Stream be open. If it is not open, an error will be generated. If the size is not known, the return value is -1. If the size exceeds the upper limit of a long value, a truncated size is returned.

Code (VBScript):
Set objStream = Server.CreateObject("ADODB.Stream")
objStream.Open rsData, adModeShareExclusive
...
Dim lngStreamSize
lngStreamSize = objStream.Size

 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information