This language bar is your friend. Select your favorite languages!
Select your favorite languages :
  • Or search :

Idiom #234 Encode bytes to base64

Assign to string s the standard base64 encoding of the byte array data, as specified by RFC 4648.

using System;
string s = Convert.ToBase64String(data);
import 'dart:convert';
var s = base64.encode(data);
import "encoding/base64"
s := base64.StdEncoding.EncodeToString(data)
final s = data.encodeBase64().toString()
var s = btoa(data)
uses base64;
s := EncodeStringBase64(data);
import base64
b = base64.b64encode(data)
s = b.decode()
require 'base64'
s = Base64.strict_encode64(data)
let s = base64::encode(data);
(require net/base64)
  (map char->integer
       (string->list "hi there"))))
Imports System
Dim s As String = Convert.ToBase64String(data)

New implementation...
< >