OpenAsBinaryStream Method

Object: File
Syntax: OpenAsBinaryStream ([in] IOMode)
Returns: A BinaryStream object
Description: This method opens a file and returns a BinaryStream object so that you can read and write the contents of the file.

IOMode can be one of the following:

ConstantValueDescription
ForReading1To read the file. This is the default.
ForWriting2To write to the file.
ForAppending8To append to the file.

These constants can be found using the IIS 4 or later TypeLibrary feature, or by viewing the vbFileManagerInclude.asp file contained in the .\Samples\directory.

Copyright © 2010 SoftArtisans, Inc. All rights reserved.