0

I am using Mongo-Java-Driver 3.0.

How can i change bucket name from fs to new_name in MongoDB GridFS?

Ethaan
  • 11,291
  • 5
  • 35
  • 45
Dev
  • 13,492
  • 19
  • 81
  • 174

1 Answers1

0

Use the bucket argument to the constructor, as documented in the Java GridFS API.

GridFS(db, "new_name")

Is this not working for you? If not, what happens? What's the error?

wdberkeley
  • 11,531
  • 1
  • 28
  • 23