Events coming via an API Gateway can have content with bodies encoded as Base64. This is especially true for HTML API Gateways (as opposed to REST API Gateways).

This function propagates NULLs. That is, from_base64(NULL) returns NULL.

from_base64(x)

Arguments

x

a Base64 string

Value

character

Examples

from_base64("eyJudW1iZXIiOjd9")
#> [1] "{\"number\":7}"