Library Version 12.1.6.0

DB_ENV->get_blob_dir()
Prev | Chapter 13. Binary Large Objects | Next

## DB_ENV->get_blob_dir()

    #include <db.h>

    int
    DB_ENV->get_blob_dir(DB_ENV *dbenv, const char **dirp);

The `DB_ENV->get_blob_dir()` method returns the directory location where blob data is stored. The default location can be set using DB_ENV->set_blob_dir(). Use this method only if the database was opened in an environment. If the database was not opened within an encompassing environment, use DB->get_blob_dir() instead.

The `DB_ENV->get_blob_dir()` method always returns 0 to indicate success.

### Parameters

#### dirp

The dirp parameter references memory into which is copied the path to the BLOB data directory. If DB_ENV->set_blob_dir() has not been called prior to calling this method, or if BLOBS are not supported by this environment, then this parameter is set to NULL.

### Class

DB_ENV

### See Also

BLOBs and Related Methods

Prev | Up | Next
DB_STREAM->write() | Home | DB_ENV->get_blob_threshold()