Click or drag to resize

Crypt32ManagedCryptFileToBinary Method

Reads the file which is either in binary or base64 encoding or hex formatted and returns decoded bytes.

Namespace:  PKI.ManagedAPI
Assembly:  PKI.Core (in PKI.Core.dll) Version: 3.3.0.0 (3.3.0.0)
Syntax
public static byte[] CryptFileToBinary(
	string path
)

Parameters

path
Type: SystemString
Specifies the path to a file to read.

Return Value

Type: Byte
Decoded binary copy of the file.
Exceptions
ExceptionCondition
ArgumentExceptionThe file cannot be read.
Win32ExceptionThe system cannot find the file specified.
See Also