Returns an object idenfier (Oid) for the imported large object
Arguments
- conn
a PqConnection object, produced by
DBI::dbConnect()
- filepath
a path to the large object to import
- oid
the oid to write to. Defaults to 0 which assigns an unused oid
Examples
if (FALSE) { # \dontrun{
con <- postgresDefault()
filepath <- 'your_image.png'
dbWithTransaction(con, {
oid <- postgresImportLargeObject(con, filepath)
})
} # }