CryptoSys PKI Pro Manual

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.NET]
Public Shared Function Extract ( _
	outputFile As String, _
	inputFile As String, _
	opts As Smime.Options _
) As Integer

Parameters

outputFile
Name of output file to be created
inputFile
Name of input file containing S/MIME entity
opts
Type: Smime.Options
Options

Return Value

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

VB6/C equivalent: SMIME_Extract

[Contents] [Index]

[PREV: Sig.VerifyFile Method...]   [Contents]   [Index]   
   [NEXT: Smime.Query Method...]

Copyright © 2004-24 D.I. Management Services Pty Ltd. All rights reserved. Generated 2024-09-23T07:52:09Z.