I'd like to save a plot image directly to the database.
Is the best way in R to do this:
- Write the plot image (png) to the filesystem
- Read the file that was written
- Send the file to the database via query (RODBC)
Ideally I'd like to combine steps 1 and 2 above by simply write the png image to a binary connection. Does R support this?