flob {flobr}R Documentation

Flob File

Description

Converts a file into a flob. Flobs are useful for saving files in databases.

Usage

flob(path, name = "")

Arguments

path

A string of the path to the file.

name

A string of the name (without the extension) for the flob. If "" (the default) then the original file name is used.

Details

A flob is a file that was read into binary in integer-mode as little endian, saved as the single element of a named list (where the name is the extension of the original file) and then serialized before being coerced into a blob.

Value

A named flob of the file.

See Also

flobr()

Examples

path <- system.file("extdata", "flobr.pdf", package = "flobr")
flob <- flob(path)
flob

[Package flobr version 0.2.3 Index]