CryptBinaryConverterCryptFileToBinary Method

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

Definition

Namespace: SysadminsLV.PKI
Assembly: SysadminsLV.PKI (in SysadminsLV.PKI.dll) Version: 4.0.1
C#
public static byte[] CryptFileToBinary(
	string path
)

Parameters

path  String
Specifies the path to a file to read.

Return Value

Byte
Decoded binary copy of the file.

Exceptions

ArgumentExceptionThe file cannot be read.
Win32ExceptionThe system cannot find the file specified.

See Also