Click or drag to resize

SmimeExtract Method

Extract the body from an S/MIME entity.

Namespace: CryptoSysPKI
Assembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntax
public static int Extract(
	string outputFile,
	string inputFile,
	SmimeOptions opts
)

Parameters

outputFile  String
Name of output file to be created
inputFile  String
Name of input file containing S/MIME entity
opts  SmimeOptions
Options

Return Value

Int32
A positive number giving the size of the output file in bytes; otherwise it returns an error code
Remarks
This is designed to extract the body from an S/MIME entity with a content type of application/pkcs7-mime with base64 or binary transfer encoding. In practice, it will extract the body from almost any type of S/MIME (or MIME) file, except one with quoted-printable transfer encoding. By default the output is encoded in binary. Use the EncodeBase64 option to encode the output in base64.
See Also