MongoDB Java Driver legacy all-in-one JAR providing comprehensive database connectivity for Java applications with synchronous APIs, CRUD operations, aggregation, GridFS, change streams, and authentication support
—
Specialized file storage system for handling large files using MongoDB's GridFS specification with streaming upload and download capabilities.
public interface GridFSBucket {
String getBucketName();
ObjectId uploadFromStream(String filename, InputStream source);
ObjectId uploadFromStream(String filename, InputStream source, GridFSUploadOptions options);
void downloadToStream(ObjectId id, OutputStream destination);
void downloadToStream(String filename, OutputStream destination);
GridFSUploadStream openUploadStream(String filename);
GridFSDownloadStream openDownloadStream(ObjectId id);
GridFSFindIterable find();
GridFSFindIterable find(Bson filter);
void delete(ObjectId id);
void rename(ObjectId id, String newFilename);
void drop();
}[Full GridFS documentation would follow...]
Install with Tessl CLI
npx tessl i tessl/maven-org-mongodb--mongo-java-driver