---
name: "PX_set_blob_file"
section: "3"
platform: "linux"
package: "pxlib-dev"
version: "0.6.9-1+b1"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/PX_set_blob_file"
---

# PX\_set\_blob\_file(3)

Associate blob file with database

## NAME

PX\_set\_blob\_file — Associate blob file with database

## SYNOPSIS

\#include \<paradox.h\>

int PX\_set\_blob\_file(pxdoc\_t \*pxdoc, const char \*filename)

## DESCRIPTION

Opens or creates the given blob file and associates it with the Paradox  database. This function must be called before accessing records  whose blob data is stored in a .MB file. It must also be called after  opening or creating the paradox database. If the blob data is contained  in the record itself or can be stored in the record, this function may  not be called.

This function must be called after opening or creating the database  file, because it uses the same file open mode. If you call it before  **[PX\_open\_file(3)](/PX_open_file/3.md)** or **[PX\_create\_file(3)](/PX_create_file/3.md)** 			it will quit with an error.

## RETURN VALUE

Returns a value \< 0 in case of an error, otherwise 0.

## SEE ALSO

**[PX\_open\_file(3)](/PX_open_file/3.md)**,  **[PX\_create\_file(3)](/PX_create_file/3.md)**

## AUTHOR

This manual page was written by Uwe Steinmann uwe@steinmann.cx.
