flob: Flob File

View source: R/flob.R

flobR 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

flobr documentation built on Aug. 25, 2022, 5:05 p.m.