Imports a large object from file
Returns an object idenfier (Oid) for the imported large object
postgresImportLargeObject(conn, filepath = NULL, oid = 0)
conn
: a PqConnection object, produced by DBI::dbConnect()
filepath
: a path to the large object to importoid
: the oid to write to. Defaults to 0 which assigns an unused oidthe identifier of the large object, an integer
## Not run: con <- postgresDefault() filepath <- 'your_image.png' dbWithTransaction(con, { oid <- postgresImportLargeObject(con, filepath) }) ## End(Not run)
Useful links
Downloads (last 30 days):