EncodingUtilsToBase64 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.
Namespace: EWSoftware.PDIAssembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public static string ToBase64(
this string encode,
int foldWidth,
bool appendBlankLine
)
<ExtensionAttribute>
Public Shared Function ToBase64 (
encode As String,
foldWidth As Integer,
appendBlankLine As Boolean
) As String
public:
[ExtensionAttribute]
static String^ ToBase64(
String^ encode,
int foldWidth,
bool appendBlankLine
)
[<ExtensionAttribute>]
static member ToBase64 :
encode : string *
foldWidth : int *
appendBlankLine : bool -> string
- 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.
StringThe Base 64 encoded stringIn Visual Basic and C#, you can call this method as an instance method on any object of type
String. When you use instance method syntax to call this method, omit the first parameter. For more information, see
Extension Methods (Visual Basic) or
Extension Methods (C# Programming Guide).