This is a helper function to write some resulting data from chrome to file. It will:
decode the base64 encoded raw data
write to file using base::writeBin()
It will be useful for function like Page$printToPDF()
write_base64(res, con)
res | A resulting list object with some |
---|---|
con | A connection object. See base::writeBin(). |