Extract the body from an S/MIME entity.
Namespace: CryptoSysPKIAssembly: diCrSysPKINet (in diCrSysPKINet.dll) Version: 23.0.0.30549 (23.1.0.0)
Syntaxpublic static int Extract(
string outputFile,
string inputFile,
SmimeOptions opts
)
Public Shared Function Extract (
outputFile As String,
inputFile As String,
opts As SmimeOptions
) As Integer
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
Int32A positive number giving the size of the output file in bytes;
otherwise it returns an
error code
RemarksThis 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