rawToBase64: Convert raw vector to Base64-encoded string

Description Usage Arguments Examples

View source: R/httpuv.R

Description

Converts a raw vector to its Base64 encoding as a single-element character vector.

Usage

1

Arguments

x

A raw vector.

Examples

1
2
3
set.seed(100)
result <- rawToBase64(as.raw(runif(19, min=0, max=256)))
stopifnot(identical(result, "TkGNDnd7z16LK5/hR2bDqzRbXA=="))


httpuv documentation built on May 20, 2017, 4:34 a.m.
Search within the httpuv package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.