powered by
Decodes base64-encoded data URIs and writes them to PNG files.
base64_to_image(data_uri, output_files)
Character, the paths to the created PNG files
Character, a data URI character vector starting with "data:image/png;base64,"
Character, paths to the output PNG files
rlogo <- file.path(R.home("doc"), "html", "logo.jpg") base64_str <- image_to_base64(rlogo) base64_to_image( data_uri = base64_str, output_files = tempfile(fileext = ".jpeg") )
Run the code above in your browser using DataLab