base64 Encoding of a .png File

Share:

Description

base64 Encoding of a .png File

Usage

1
encodePNG(plotLoc)

Arguments

plotLoc

location of a png file on disk to encode as a base64 string

Examples

1
2
3
4
5
f <- tempfile(fileext = ".png")
png(f)
plot(1:10)
dev.off()
encodePNG(f)

Want to suggest features or report bugs for rdrr.io? Use the GitHub issue tracker.