- 
                Notifications
    
You must be signed in to change notification settings  - Fork 35
 
M_CodeJam_Strings_StringExtensions_ToBase64
        Andrew Koryavchenko edited this page Jul 4, 2017 
        ·
        5 revisions
      
    Converts an array of bytes to its equivalent string representation that is encoded with base-64 digits. A parameter specifies whether to insert line breaks in the return value.
Namespace: CodeJam.Strings
Assembly: CodeJam (in CodeJam.dll) Version: 1.1.0.0 (1.1.0.0)
C#
public static string ToBase64(
	this byte[] data,
	Base64FormattingOptions options = Base64FormattingOptions.None
)VB
<ExtensionAttribute>
Public Shared Function ToBase64 ( 
	data As Byte(),
	Optional options As Base64FormattingOptions = Base64FormattingOptions.None
) As StringF#
[<ExtensionAttribute>]
static member ToBase64 : 
        data : byte[] * 
        ?options : Base64FormattingOptions 
(* Defaults:
        let _options = defaultArg options Base64FormattingOptions.None
*)
-> string 
- data
 - Type: System.Byte[]
an array of bytes. - options (Optional)
 - Type: System.Base64FormattingOptions
InsertLineBreaks to insert a line break every 76 characters, or None to not insert line breaks. 
Type: String
The string representation in base 64 of the elements in data.
In Visual Basic and C#, you can call this method as an instance method on any object of type . 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).