CryptoSys PKI Toolkit Manual
Pem.FileFromBinFile Method
Creates a PEM file from a binary file.
Syntax
[C#]
public static int FileFromBinFile(
string fileToMake,
string fileIn,
string header,
int lineLen
)
[VB.NET]
Public Shared Function FileFromBinFile ( _
fileToMake As String, _
fileIn As String, _
header As String, _
lineLen As Integer _
) As Integer
Parameters
- fileToMake
- Name of PEM file to create
- fileIn
- Name of input binary file
- header
- Header to be used. Leave empty to omit the PEM header and footer.
- lineLen
- Maximum length of a line in the resulting PEM file [default = 64 characters]
Return Value
Zero if successful; otherwise it returns an
error code
Remarks
Any input file is accepted and treated as binary data. No checks are made that the header matches the data.
Examples (VB.NET)
See
Example1
See Also
VB6/C equivalent: PEM_FileFromBinFile
[Contents] [Index]