Details
-
Bug
-
Resolution: Cannot Reproduce
-
Major - P3
-
None
-
Windows 7 64bit, MongoDriver version 3.2.
*Location*: https://docs.mongodb.org/manual/?_ga=1.262378191.2119288918.1451580806
*User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36
*Referrer*: https://www.mongodb.org/
*Screen Resolution*: 1366 x 768
*repo*: docs
*source*: index
Windows 7 64bit, MongoDriver version 3.2. *Location*: https://docs.mongodb.org/manual/?_ga=1.262378191.2119288918.1451580806 *User-Agent*: Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/48.0.2564.103 Safari/537.36 *Referrer*: https://www.mongodb.org/ *Screen Resolution*: 1366 x 768 *repo*: docs *source*: index
Description
Hi there, it is Muhammad Faisal Hyder, student of BE in CiS Engg. I am using MongoDB for my fyp and when i came to use GridFS for images and videos there is an issue i am facing,
DB mDB = mClient.getDB("mydb"); // Deprecated |
MongoDatabase mDataBase = mClient.getDatabase("mydb");//substitute of getDB |
|
|
GridFS gridFS = new GridFS(mDB,"myCollection"); |
but in gridFS we have to use old way of getting database i.e. DB's object
kindly fix this issue of GridFS for MongoDatabase instance or is there any other way to get it done without using deprecated method.