CreaSign

Data.CreateOnFile Method 

Initializes the Data object from the underlying file. The file is not loaded into the memory.

[Visual Basic]
Public Sub CreateOnFile( _
   ByVal Filename As String, _
   ByVal maxInMemorySize As Integer, _
   ByVal Options As FileOptions _
)

Parameters

Filename
The name of the file from which the Data object is initialized.
maxInMemorySize
The parameter is not used. It must be 0.
Options
Specifies how the file should be opened.

Remarks

This method is useful when you want to process a very large file because it does not load the whole file into memory. The maximum size of the file is 2GB. For example, you can calculate the SHA1 digest of a file that is larger than the amount of available computer memory.

When the Data object is destroyed, the file is automatically closed. To close it sooner, call the Close method.

This method can not be called from an untrusted code.

Requirements

Requires CreaSign Pro or CreaSign Lite.

See Also

Data Class | CreaSign Namespace


Send comments on this topic.

(c) CREA 2002-2007 www.creasign.si