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.

Definition

Namespace: EWSoftware.PDI
Assembly: EWSoftware.PDI.Data (in EWSoftware.PDI.Data.dll) Version: 2023.1.2.0
public static string ToBase64(
	this string encode,
	int foldWidth,
	bool appendBlankLine
)

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

String
The Base 64 encoded string

Usage Note

In 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).

See Also