---
name: "mongoc_gridfs_file_get_length"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_gridfs_file_get_length"
---

# mongoc\_gridfs\_file\_get\_length(3)

## SYNOPSIS

```
int64_t
mongoc_gridfs_file_get_length (mongoc_gridfs_file_t *file);
```

## PARAMETERS

- •

  **file**: A *mongoc\_gridfs\_file\_t*.

## DESCRIPTION

Fetches the length of the gridfs file in bytes.

## RETURNS

A 64-bit signed integer.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
