base64_encode {xfun}R Documentation

Encode data into the base64 encoding.

Description

Encode a file or a raw vector into the base64 encoding.

Usage

base64_encode(x)

Arguments

x

A raw vector. If not raw, it is assumed to be a file or a connection to be read as raw via readBin().

Value

A character string.

Examples

xfun::base64_encode(as.raw(1:10))
logo = file.path(R.home("doc"), "html", "logo.jpg")
xfun::base64_encode(logo)

[Package xfun version 0.15 Index]