Package | Description |
---|---|
com.mongodb.client.gridfs |
This package contains the new GridFS implementation
|
com.mongodb.client.gridfs.model |
This package contains models for use with GridFS
|
Modifier and Type | Method and Description |
---|---|
GridFSUploadStream |
GridFSBucket.openUploadStream(String filename,
GridFSUploadOptions options)
Opens a Stream that the application can write the contents of the file to.
|
ObjectId |
GridFSBucket.uploadFromStream(String filename,
InputStream source,
GridFSUploadOptions options)
Uploads a user file to a GridFS bucket.
|
Modifier and Type | Method and Description |
---|---|
GridFSUploadOptions |
GridFSUploadOptions.chunkSizeBytes(Integer chunkSizeBytes)
Sets the chunk size in bytes.
|
GridFSUploadOptions |
GridFSUploadOptions.metadata(Document metadata)
Sets metadata to stored alongside the filename in the files collection
|
Copyright © 2016. All Rights Reserved.