or run

npx @tessl/cli init
Log in

Version

Tile

Overview

Evals

Files

Files

docs

aggregation.mdauthentication-security.mdbson-types.mdchange-streams.mdcollection-operations.mdconfiguration.mdconnection-management.mddatabase-operations.mdgridfs.mdindex.mdquery-building.mdsessions-transactions.md

gridfs.mddocs/

0

# GridFS File Storage

1

2

Specialized file storage system for handling large files using MongoDB's GridFS specification with streaming upload and download capabilities.

3

4

## Capabilities

5

6

### GridFSBucket Interface

7

8

```java { .api }

9

public interface GridFSBucket {

10

String getBucketName();

11

12

ObjectId uploadFromStream(String filename, InputStream source);

13

ObjectId uploadFromStream(String filename, InputStream source, GridFSUploadOptions options);

14

15

void downloadToStream(ObjectId id, OutputStream destination);

16

void downloadToStream(String filename, OutputStream destination);

17

18

GridFSUploadStream openUploadStream(String filename);

19

GridFSDownloadStream openDownloadStream(ObjectId id);

20

21

GridFSFindIterable find();

22

GridFSFindIterable find(Bson filter);

23

24

void delete(ObjectId id);

25

void rename(ObjectId id, String newFilename);

26

void drop();

27

}

28

```

29

30

*[Full GridFS documentation would follow...]*