encodePNG: base64 Encoding of a .png File

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)

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

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