Encoding UtilsTo Base 64 Method
This method is used to Base 64 encode the specified string using the iso-8859-1 encoding (Western
European (ISO), Windows code page 1252) which works well for 8-bit binary data.
Definition
Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
The Base 64 encoded string
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2025.1.9.0
C#
public static string? ToBase64(
this string? encode,
int foldWidth,
bool appendBlankLine
)VB
<ExtensionAttribute>
Public Shared Function ToBase64 (
encode As String,
foldWidth As Integer,
appendBlankLine As Boolean
) As StringC++
public:
[ExtensionAttribute]
static String^ ToBase64(
String^ encode,
int foldWidth,
bool appendBlankLine
)F#
[<ExtensionAttribute>]
static member ToBase64 :
encode : string *
foldWidth : int *
appendBlankLine : bool -> string Parameters
- encode String
- The string to encode.
- foldWidth Int32
- If greater than zero, line folds are inserted at the specified interval with one leading space.
- appendBlankLine Boolean
- If true, an extra carriage return and line feed are appended to the end of the encoded data to satisfy the requirements of some specifications such as vCard 2.1. If false, they are not appended.
Return Value
StringThe Base 64 encoded string