Smime.Extract Method
Extract the body from an S/MIME entity.
Syntax
[C#]
public static int Extract(
string outputFile,
string inputFile,
Smime.Options opts
)
[VB]
Public Shared Function Extract (
outputFile As String,
inputFile As String,
opts As Smime.Options
) As Integer
Parameters
- outputFile String
- Name of output file to be created
- inputFile String
- Name of input file containing S/MIME entity
- opts Smime.Options
- Options
Return Value
Int32A 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
VB6/C equivalent: SMIME_Extract
[Contents] [Index]