pg_read_binary_file ( filename text [, offset bigint, length bigint ] [, missing_ok boolean ] ) → byteaReturns all or part of a file. This function is identical to pg_read_file except that it can read arbitrary binary data, returning the result as bytea not text; accordingly, no encoding checks are performed.